summaryrefslogtreecommitdiffstats
path: root/lib/libc/regex/regexec.c
diff options
context:
space:
mode:
authorjah <jah@FreeBSD.org>2016-05-29 07:14:51 +0000
committerjah <jah@FreeBSD.org>2016-05-29 07:14:51 +0000
commit653be251d7d13f335072502adbcc12caa43592ac (patch)
tree8d74e2b802c151e2d41f937bbc4cba2abe30bca8 /lib/libc/regex/regexec.c
parentc23d573f29b40dc21606c413d0592c987b90f302 (diff)
downloadFreeBSD-src-653be251d7d13f335072502adbcc12caa43592ac.zip
FreeBSD-src-653be251d7d13f335072502adbcc12caa43592ac.tar.gz
MFC r300258:
iic_rdwr_data->nmsgs is uint32_t, so limit the allowable number of messages to prevent memory exhaustion and short allocations on 32-bit systems. Since iicrdwr is intended to be a workalike of a Linux i2c-dev call, use the same limit of 42 that Linux uses. Also check the return value of copyin(9) to prevent unnecessary allocation in the failure case.
Diffstat (limited to 'lib/libc/regex/regexec.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud