patchGNU 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

Submitted by:  Arjan Knepper <arjanknepper>
Submitted on:  Tue 18 Oct 2005 08:54:22 AM UTC  
 
Category:  None Priority:  9 - Immediate
Status:  Done Privacy:  Public
Assigned to:  None Open/Closed:  Open

Tue 18 Oct 2005 08:54:22 AM UTC, original submission:

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.

Arjan Knepper <arjanknepper>

 

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

 

Do you think this task is very important?
If so, you can add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

 

 

Follow 2 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2006-05-16 fedemp StatusNone => Done
2005-10-18 arjanknepper Attached File- => Added source.cpp.patch, #5339

Back to the top


Powered by Savane 3.3