[DragonFlyBSD - Bug #2665] patch fails on lines lengths overflowing a short int.

bugtracker-admin at leaf.dragonflybsd.org bugtracker-admin at leaf.dragonflybsd.org
Wed Apr 16 23:47:03 PDT 2014


Issue #2665 has been updated by tautolog.

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. 

----------------------------------------
Bug #2665: patch fails on lines lengths overflowing a short int. 
http://bugs.dragonflybsd.org/issues/2665#change-11926

* Author: tautolog
* Status: New
* Priority: Normal
* Assignee: 
* Category: Userland
* Target version: 
----------------------------------------
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)


-- 
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://bugs.dragonflybsd.org/my/account



More information about the Bugs mailing list