[LLVMdev] [Patch] WinCOFFObjectWriter: fix for storing pointer to string table in header name field

Paweł Bylica pawel.bylica at ibs.org.pl
Tue Jul 23 09:29:01 PDT 2013


Hi,

Recently I was hit by an assert in WinCOFFObjectWriter that had forbidden
storing pointer to string table in header name field when the pointer had
more that 6 decimal digits. This limit had been chosen to make
implementation easier (sprintf adds null character at the end) and could be
increased to 7 digits.

My patch is attached. The implementation uses additional buffer on the
stack to make integer to string conversion.

- Paweł Bylica
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130723/46cda28e/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: WinCOFFObjectWriter_PointerToStingTable.patch
Type: application/octet-stream
Size: 1529 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130723/46cda28e/attachment.obj>


More information about the llvm-dev mailing list