Mercurial > pub > dyncall > dyncall
diff test/dynload_plain/dynload_plain.c @ 312:18de5758980e
- stability fix: avoid sigsegv in dynload's dlGetLibraryPath() in some cases (e.g. wrong handle given or OS specific quirk)
author | Tassilo Philipp |
---|---|
date | Tue, 29 Oct 2019 16:09:58 +0100 |
parents | 5b1ff4c73194 |
children | 73b5b9e224e2 |
line wrap: on
line diff
--- a/test/dynload_plain/dynload_plain.c Sat Oct 26 22:02:32 2019 +0200 +++ b/test/dynload_plain/dynload_plain.c Tue Oct 29 16:09:58 2019 +0100 @@ -132,7 +132,7 @@ dlFreeLibrary(pLib); /* check if dlGetLibraryPath returns 0 when trying to lookup dummy */ - bs = dlGetLibraryPath((DLLib*)&r/*dummy addr in own addr space to avoid segv*/, queriedPath, 200); + bs = dlGetLibraryPath((DLLib*)&r/*dummy addr*/, queriedPath, 200); printf("path lookup failed as expected with bad lib handle: %d\n", bs == 0); r += (bs == 0);