This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/19709] New: [PATCH] replace alloca() with malloc()/free() in rcmd.c


https://sourceware.org/bugzilla/show_bug.cgi?id=19709

            Bug ID: 19709
           Summary: [PATCH] replace alloca() with malloc()/free() in
                    rcmd.c
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
          Assignee: unassigned at sourceware dot org
          Reporter: loganaden at gmail dot com
                CC: drepper.fsp at gmail dot com
  Target Milestone: ---

Created attachment 9030
  --> https://sourceware.org/bugzilla/attachment.cgi?id=9030&action=edit
malloc_rcmd

Change from alloca() to malloc()/free(). 

The rationale behind is that alloca() should be used sparingly, as it's hard to
do bound-checking, and most importantly, the behaviour is undefined in case of
failures, unlike malloc().

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]