You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 1, 2023. It is now read-only.
The dlopen error contains the filename and is passed verbatim to printf.
so disable any % in the user-controlled name.
repro: mangle a so.
Breakpoint 3, SaveError (pat=0x1005ac486 "%s") at ./dlutils.c:188
188 while ((end = strchr(end, '%'))) { *end = ' '; }
(gdb) p end
$1 = 0x10110ee00 "dlopen(/usr/src/perl/blead/cperl/lib/auto/%B/%B.bundle, 1):
no suitable image found. Did find:\n\t/usr/src/perl/blead/cperl/lib/auto/B/B.bundle:
malformed mach-o image: load command #10 length (4096) wou"...
The dlopen error contains the filename and is passed verbatim to printf.
so disable any % in the user-controlled name.
repro: mangle a so.
Breakpoint 3, SaveError (pat=0x1005ac486 "%s") at ./dlutils.c:188
188 while ((end = strchr(end, '%'))) { *end = ' '; }
(gdb) p end
$1 = 0x10110ee00 "dlopen(/usr/src/perl/blead/cperl/lib/auto/%B/%B.bundle, 1):
no suitable image found. Did find:\n\t/usr/src/perl/blead/cperl/lib/auto/B/B.bundle:
malformed mach-o image: load command #10 length (4096) wou"...
See https://github.com/imneme/pcg-c-basic for the 32bit
and https://github.com/imneme/pcg-c for the 64bit variant. And my fork and fixes.
This is 20x faster and much better statistically.
Est. 3d
See also perl11/potion#99 for the results of the pcg branch in potion.
Or use the new xoroshift++, which should be even better. See https://www.reddit.com/r/programming/comments/4gtlfz/xoroshiro128_the_fastest_fullperiod_pseudorandom/
Nope: xoroshift128++ is officially broken.
The text was updated successfully, but these errors were encountered: