LibreDWG/libredwg

Type casting inconsistency

ManSoSec opened this issue · 1 comments

while ((int)(hdl_dat.byte - startpos) < section_size)

while (hdl_dat.byte - startpos < section_size)

Is a type casting (int) missed?

We should rather zero-extend to long both sides here, to avoid overflows. Thanks. Done in 631bbac