Date: Thu, 18 Oct 2007 04:28:25 GMT From: John Birrell <jb@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 127652 for review Message-ID: <200710180428.l9I4SPHp093773@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=127652 Change 127652 by jb@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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200710180428.l9I4SPHp093773>