aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2014-12-02 15:40:00 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2014-12-02 15:40:00 +0200
commit85dfe24a45c65a9f414769fe059b1c5a06a3b176 (patch)
tree34d30abd17218cebff1c08861de8964c01296539
parent9123a024f14da7ce48cdf7f0cadfe6850be7501e (diff)
downloadeclat-85dfe24a45c65a9f414769fe059b1c5a06a3b176.tar.gz
eclat-85dfe24a45c65a9f414769fe059b1c5a06a3b176.tar.bz2
Bugfix
* etc/flncat.c: Add boundary check
-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)
103 if (c == EOF) 103 if (c == EOF)
104 break; 104 break;
105 else { 105 else {
106 assert(lev < sizeof(buf));
106 buf[lev++] = c; 107 buf[lev++] = c;
107 fwrite(buf, lev, 1, stdout); 108 fwrite(buf, lev, 1, stdout);
108 } 109 }

Return to:

Send suggestions and report system problems to the System administrator.