[bugs] [illumos gate - Bug #1224] (In Progress) lp may overwrite constant data
illumos bugs
bugs at lists.illumos.org
Sat Jul 16 21:10:38 PDT 2011
Issue #1224 has been reported by Rich Lowe.
----------------------------------------
Bug #1224: lp may overwrite constant data
https://www.illumos.org/issues/1224
Author: Rich Lowe
Status: In Progress
Priority: Normal
Assignee: Rich Lowe
Category: cmd - userland programs
Target version:
Difficulty: Medium
Tags:
If built with -xstrconst or with gcc without -fwritable-strings lp will overwrite constant strings when:
1. Checking the terminfo database (type_letter in _isterminfo)
2. In numerous places while forming argument error messages
3. ... in countless places other places as yet undiscovered (yech!)
This bug covers #1 and #2. People playing along at home may wish to grep cmd/lp for any string constant assigned to char* and considering each of them deeply suspicious (though I suspect even a pass that thorough will miss the more insidious bits of this pile).
--
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://www.illumos.org/my/account
More information about the bugs
mailing list