GNU ccRTP - Patches: patch #4527, Segmentation fault on Unix-like os...
You are not allowed to post comments on this tracker with your current authentication level.
patch #4527: Segmentation fault on Unix-like os due to unchecked return value of getEnv
Submitter: | Arjan Knepper <arjanknepper> | ||
Submitted: | Tue 18 Oct 2005 08:54:22 AM UTC | ||
Category: | None | Priority: | 9 - Immediate |
Status: | Done | Privacy: | Public |
Assigned to: | None | Open/Closed: | Open |
Attached Files
file #8057: source.cpp.patch added by arjanknepper (362B - application/octet-stream - unified diff output of the patched source.cpp)
Depends on the following items: None found
Items that depend on this one: None found
CC list is empty
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Follow 2 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2006-05-16 | fedemp | Status | None | Done | |
2005-10-18 | arjanknepper | Attached File | - | Added source.cpp.patch, #5339 |
Powered by Savane 3.13-d3ae.
Corresponding source code
The file source.cpp has a global function 'findusername' which does a const char assigment with Process::getEnv (..). That const char is used in a strcmp whithout checking the value of the const char*. The const char* could be NULL which will cause a segmentatio fault.
Attached a patch which checks the const char * before calling strcmp.