bugmake - Bugs: bug #36641, Crash when using ridiculously...

 
 

bug #36641: Crash when using ridiculously large target names

Submitted by:  None
Submitted on:  Tue 12 Jun 2012 05:16:49 PM UTC  
 
Severity: 3 - NormalItem Group: Bug
Status: DuplicatePrivacy: Public
Assigned to: NoneOpen/Closed: Closed
Component Version: 3.82Operating System: Any
Fixed Release: NoneTriage Status: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sun 09 Sep 2012 10:03:54 PM UTC, comment #1:

This is a duplicate of Savannah bug #35525.

Paul D. Smith <psmith>
Project Administrator
Tue 12 Jun 2012 05:16:49 PM UTC, original submission:

If the stem len is bigger than PATH_MAX, it results in a buffer over run:

455a456

> unsigned int stemlen_copy;

494,495c495,497
< strncpy (stem_str, stem, stemlen);
< stem_str[stemlen] = '\0';
---

> stemlen_copy = stemlen > sizeof(stem_str) ? sizeof(stem_str) : stemlen;
> strncpy (stem_str, stem, stemlen_copy);
> stem_str[stemlen_copy] = '\0';

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by psmith (Posted a comment)
  •  

    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
    Sun 09 Sep 2012 10:03:54 PM UTCpsmithStatusNone=>Duplicate
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1