GP-5558: fixed ndata post-increment instead of pre-increment causing

return case to be missed (Closes #7973, Closes #7974)
This commit is contained in:
Sullivan DeVries 2025-04-01 17:23:24 -07:00 committed by Ryan Kurtz
parent 59c55fdb6b
commit f29fb24ee8

View file

@ -394,7 +394,7 @@ public class OptionalHeaderImpl implements OptionalHeader {
throw re;
}
}
if (ndata++ == numberOfRvaAndSizes) {
if (++ndata == numberOfRvaAndSizes) {
return;
}