Project

General

Profile

Bug #2665

patch fails on lines lengths overflowing a short int.

Added by tautolog over 2 years ago. Updated over 2 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Userland
Target version:
-
Start date:
04/16/2014
Due date:
% Done:

100%


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 View - short changed to size_t (2.65 KB) tautolog, 04/16/2014 11:37 PM

History

#1 Updated by tautolog over 2 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.

#2 Updated by jorisgio over 2 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

Also available in: Atom PDF