http://llvm.org/bugs/show_bug.cgi?id=9684

Benjamin Kramer <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |[email protected]
         Resolution|                            |INVALID

--- Comment #5 from Benjamin Kramer <[email protected]> 2011-06-10 12:09:31 
CDT ---
This is a bug in nedit. It boils down to:

===
#include <string.h>
#include <limits.h>

static unsigned char Default_Delimiters[UCHAR_MAX] = {0};

int main() {
  memset(Default_Delimiters, 0, 256);
}
===

The memset will overrun Default_Delimiters by one byte. OS X enables checking
of memset bounds, in this case it only sees the size of Default_Delimiters
through inlining at -O2 though.

You can either patch nedit or compile with -D_FORTIFY_SOURCE=0, which disables
memset checking.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to