Skip to content

Commit d38a3db

Browse files
Prevent out-of-bounds access with smaller patch array in pre_process
1 parent 3e70706 commit d38a3db

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/pre_process/m_global_parameters.fpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ contains
365365
ib = .false.
366366
num_ibs = dflt_int
367367

368-
do i = 1, num_ib_patches_max
368+
do i = 1, num_ib_patches_max_namelist
369369
patch_ib(i)%geometry = dflt_int
370370
patch_ib(i)%x_centroid = dflt_real
371371
patch_ib(i)%y_centroid = dflt_real

0 commit comments

Comments
 (0)