Bug #2665

patch fails on lines lengths overflowing a short int.

Added by tautolog 4 months ago. Updated 3 months ago.

Status:ResolvedStart date:04/16/2014
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:Userland
Target version:-

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.

too-short.patch Magnifier - short changed to size_t (2.65 KB) tautolog, 04/16/2014 11:37 PM

History

#1 Updated by tautolog 4 months 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.

#2 Updated by jorisgio 3 months ago

  • Status changed from New to Resolved
  • % Done changed from 90 to 100

Thank you for the patch. committed on master (3.9) : e19e5bbc20dd1d64f1833c5d0ac7a605c8e9bfa0

Also available in: Atom PDF