Actions
Bug #2665
closedpatch fails on lines lengths overflowing a short int.
Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Userland
Target version:
-
Start date:
04/16/2014
Due date:
% Done:
100%
Estimated time:
Description
The line length array is of type short when it needs to be type size_t. Only strlen() is assigning to it, which returns size_t. The attached patch fixed it for me.
Files
Updated by tautolog over 10 years ago
- Subject changed from patch fails on lines longer than 8192, crashing when overflowing to negative to patch fails on lines lengths overflowing a short int.
Updated by jorisgio over 10 years ago
- Status changed from New to Resolved
- % Done changed from 90 to 100
Thank you for the patch. committed on master (3.9) : e19e5bbc20dd1d64f1833c5d0ac7a605c8e9bfa0
Actions