diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-03-24 00:04:42 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-03-24 00:04:42 +0000 |
commit | 0b6c6a9c9f555a33d681290cce77510460457c03 (patch) | |
tree | 0d5f95c0cc0a2f6945aa97fa50266e8b8288da75 /include | |
parent | a79428998d76c1758ca12546e5db945a0cd64518 (diff) | |
download | busybox-w32-0b6c6a9c9f555a33d681290cce77510460457c03.tar.gz busybox-w32-0b6c6a9c9f555a33d681290cce77510460457c03.tar.bz2 busybox-w32-0b6c6a9c9f555a33d681290cce77510460457c03.zip |
lpd: fix OOM vulnerability (was eating arbitrarily large commands)
Diffstat (limited to 'include')
-rw-r--r-- | include/libbb.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/libbb.h b/include/libbb.h index 9f208b390..07f74e476 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -529,7 +529,7 @@ extern char *reads(int fd, char *buf, size_t count); | |||
529 | // Read one line a-la fgets. Reads byte-by-byte. | 529 | // Read one line a-la fgets. Reads byte-by-byte. |
530 | // Useful when it is important to not read ahead. | 530 | // Useful when it is important to not read ahead. |
531 | // Bytes are appended to pfx (which must be malloced, or NULL). | 531 | // Bytes are appended to pfx (which must be malloced, or NULL). |
532 | extern char *xmalloc_reads(int fd, char *pfx); | 532 | extern char *xmalloc_reads(int fd, char *pfx, size_t *maxsz_p); |
533 | extern ssize_t read_close(int fd, void *buf, size_t count); | 533 | extern ssize_t read_close(int fd, void *buf, size_t count); |
534 | extern ssize_t open_read_close(const char *filename, void *buf, size_t count); | 534 | extern ssize_t open_read_close(const char *filename, void *buf, size_t count); |
535 | extern void *xmalloc_open_read_close(const char *filename, size_t *sizep); | 535 | extern void *xmalloc_open_read_close(const char *filename, size_t *sizep); |