summaryrefslogtreecommitdiffstats
path: root/contrib/gcc/tree-vectorizer.c
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2012-06-21 09:20:07 +0000
committerkib <kib@FreeBSD.org>2012-06-21 09:20:07 +0000
commit7e14b6838bca79d6c18eb00c4fe8c0a3e3b066ff (patch)
tree01adac257d485894b5ea4edc255ff795afc07789 /contrib/gcc/tree-vectorizer.c
parentdf9f3d2faa1df2bb13d274183876fe227e259a65 (diff)
downloadFreeBSD-src-7e14b6838bca79d6c18eb00c4fe8c0a3e3b066ff.zip
FreeBSD-src-7e14b6838bca79d6c18eb00c4fe8c0a3e3b066ff.tar.gz
Fix unbounded-length malloc, controlled from usermode. The added check
is performed before exact size of the buffer is calculated, but the buffer cannot have size greater then the total space allocated for extended attributes. The existing check is executing with precise size, but it is too late, since buffer needs to be allocated in advance. Also, adapt to uio_resid being of ssize_t type. Use lblktosize instead of multiplying by fs block size by hand as well. Reported and tested by: pho MFC after: 1 week
Diffstat (limited to 'contrib/gcc/tree-vectorizer.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud