patchGNU ccRTP - Patches: patch #4527, Segmentation fault on Unix-like os...

 
 

You are not allowed to post comments on this tracker with your current authentification 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: NonePriority: 9 - Immediate
Status: DonePrivacy: Public
Assigned to: NoneOpen/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 click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 2 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Tue 16 May 2006 11:38:47 AM UTCfedempStatusNone=>Done
Tue 18 Oct 2005 08:54:22 AM UTCarjanknepperAttached File-=>Added source.cpp.patch, #5339

Back to the top


Powered by Savane 3.1-cleanup