Project

General

Profile

Actions

Bug #2665

closed

patch fails on lines lengths overflowing a short int.

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

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

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

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.
Actions #2

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

Also available in: Atom PDF