summaryrefslogtreecommitdiffabout
authorSergey Poznyakoff <gray@gnu.org.ua>2014-12-02 13:40:00 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2014-12-02 13:40:00 (GMT)
commit85dfe24a45c65a9f414769fe059b1c5a06a3b176 (patch) (side-by-side diff)
tree34d30abd17218cebff1c08861de8964c01296539
parent9123a024f14da7ce48cdf7f0cadfe6850be7501e (diff)
downloadeclat-85dfe24a45c65a9f414769fe059b1c5a06a3b176.tar.gz
eclat-85dfe24a45c65a9f414769fe059b1c5a06a3b176.tar.bz2
Bugfix
* etc/flncat.c: Add boundary check
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--etc/flncat.c1
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);
}

Return to:

Send suggestions and report system problems to the System administrator.