diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2014-12-02 15:40:00 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2014-12-02 15:40:00 +0200 |
commit | 85dfe24a45c65a9f414769fe059b1c5a06a3b176 (patch) | |
tree | 34d30abd17218cebff1c08861de8964c01296539 /etc/flncat.c | |
parent | 9123a024f14da7ce48cdf7f0cadfe6850be7501e (diff) | |
download | eclat-85dfe24a45c65a9f414769fe059b1c5a06a3b176.tar.gz eclat-85dfe24a45c65a9f414769fe059b1c5a06a3b176.tar.bz2 |
Bugfix
* etc/flncat.c: Add boundary check
Diffstat (limited to 'etc/flncat.c')
-rw-r--r-- | etc/flncat.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/etc/flncat.c b/etc/flncat.c index 6d57956..fb62a1e 100644 --- a/etc/flncat.c +++ b/etc/flncat.c @@ -103,6 +103,7 @@ main(int argc, char **argv) if (c == EOF) break; else { + assert(lev < sizeof(buf)); buf[lev++] = c; fwrite(buf, lev, 1, stdout); } |