This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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] |
On Fri, Jan 30, 2009 at 1:08 PM, H.J. Lu <hjl.tools@gmail.com> wrote: > Hi, > > output_string takes string length. We need to allocate/copy the trailing > '\0'. Otherwise, htab_hash_string will read beyond the end of string. > OK to install? > I think we should avoid htab_hash_string to save some memory. OK to install? Thanks. -- H.J. --- 009-01-30 H.J. Lu <hongjiu.lu@intel.com> PR lto/39010 * lto-function-out.c (hash_string_slot_node): Don't call htab_hash_string. (output_tree_flags): Don't add 1 for string length when calling output_string.
Attachment:
gcc-pr39010-2.patch
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |