summaryrefslogtreecommitdiff
path: root/ext/pcre/php_pcre.c
diff options
context:
space:
mode:
authorScott <scott@paragonie.com>2015-09-09 06:50:06 -0400
committerAnatol Belski <ab@php.net>2015-09-29 09:14:28 +0200
commit6554f721f770c99037f07d465a7d610568576ce4 (patch)
tree5879db22a3d40f39c56bb9d4b31d0360e60d5dcc /ext/pcre/php_pcre.c
parent208ed0a01059a32af38be5c3c5481c200c8ec4a2 (diff)
downloadphp-git-6554f721f770c99037f07d465a7d610568576ce4.tar.gz
Add support for getrandom(2), add type check on file descriptor
Fix to_read, throw exception if syscall fails Fixes thanks to feedback from sarnold at ##crypto on freenode Correction on error conditions Remove dead code (thanks @defuse) It turns out getrandom can take >256, getentropy refuses. Better semantics Thanks @defuse for catching my silly mistake here Cast to size_t to be explicit Let's simplify the logic a bit Let's be consistent; define everything before we do any logic Continuously check that the file descriptor is still a valid one Add device type check on fd initialization
Diffstat (limited to 'ext/pcre/php_pcre.c')
0 files changed, 0 insertions, 0 deletions