Date: Sat, 6 Apr 2002 17:21:04 -0800 (PST) From: Marcel Moolenaar <marcel@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 9247 for review Message-ID: <200204070121.g371L4N35885@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://people.freebsd.org/~peter/p4db/chv.cgi?CH=9247 Change 9247 by marcel@marcel_vaio on 2002/04/06 17:20:47 Make sure to set res to NULL when the binary search terminated because there was no range in which the PC fell. This fixes the bogus answer returned when trying to get the unwind information for a function that doesn't have any. This fix triggers a mild warning: we almost always strip(1) when we install programs and libraries. This is OK when there's no exception handling involved. For C++ programs with EH, strip(1) can be deadly. We need to take more care of C++ now... Affected files ... ... //depot/projects/ia64/lib/libc/ia64/gen/unwind.c#3 edit Differences ... ==== //depot/projects/ia64/lib/libc/ia64/gen/unwind.c#3 (text+ko) ==== @@ -114,6 +114,8 @@ else break; /* found */ } + if (l >= r) + res = NULL; break; } To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200204070121.g371L4N35885>