eserte / perl-tk

the perl module Tk
https://metacpan.org/release/Tk
Other
44 stars 31 forks source link

Fix segfaults due to parameter size mismatch #48

Open chrstphrchvz opened 5 years ago

chrstphrchvz commented 5 years ago

Changes from @khwilliamson: https://rt.cpan.org/Ticket/Display.html?id=128955

chrstphrchvz commented 3 years ago

I would consider backporting https://core.tcl-lang.org/tk/info/0d9c0d50f9 (tcltk/tk@ca38684090) instead to fix many additional instances of this issue.

chrstphrchvz commented 3 years ago

I changed my mind about backporting the entire upstream change; it shows only two more instances where length was changed from size_t to int, so I have incorporated those as well as removed redundant (int *) &length casts.