PERFORCE change 127652 for review

John Birrell jb at FreeBSD.org
Wed Oct 17 21:28:28 PDT 2007


http://perforce.freebsd.org/chv.cgi?CH=127652

Change 127652 by jb at jb_freebsd1 on 2007/10/18 04:28:08

	I know this code was intended just for the special
	string section, but there are other sections with data
	in the same format, so don't barf if sh_type != SHT_STRTAB.

Affected files ...

.. //depot/projects/dtrace/src/lib/libelf/elf_strptr.c#6 edit

Differences ...

==== //depot/projects/dtrace/src/lib/libelf/elf_strptr.c#6 (text+ko) ====

@@ -55,7 +55,7 @@
 	    gelf_getshdr(s, &shdr) == NULL)
 		return (NULL);
 
-	if (shdr.sh_type != SHT_STRTAB ||
+	if (/*shdr.sh_type != SHT_STRTAB || */
 	    offset >= shdr.sh_size) {
 		LIBELF_SET_ERROR(ARGUMENT, 0);
 		return (NULL);


More information about the p4-projects mailing list