[DragonFlyBSD - Bug #2665] (New) patch fails on lines longer than 8192, crashing when overflowing to negative

bugtracker-admin at leaf.dragonflybsd.org bugtracker-admin at leaf.dragonflybsd.org
Wed Apr 16 23:38:35 PDT 2014


Issue #2665 has been reported by tautolog.

----------------------------------------
Bug #2665: patch fails on lines longer than 8192, crashing when overflowing to negative
http://bugs.dragonflybsd.org/issues/2665

* 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