dlangui icon indicating copy to clipboard operation
dlangui copied to clipboard

deprecation + integer overflow

Open cym13 opened this issue 6 years ago • 0 comments

Hi,

Using recent DMD a deprecation shows for using an int to hold the index in a foreach. So far I've found 3 places:

  • src/dlangui/graphics/ftfonts.d L541
  • src/dlangui/widgets/editors.d L3447
  • src/dlangui/widgets/editors.d L3797

Those could turn into integer overflow if the length is very large so even though it's unlikely I think it's a clear logic bug.

cym13 avatar Feb 15 '19 23:02 cym13