Codebase list ohcount / 859fa8b
Fix a FTBFS (arm64 due to buffer overflow) Thanks to Steve Langasek for the patch (Closes: #895111) Sylvestre Ledru 5 years ago
3 changed file(s) with 27 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 ohcount (3.1.0-2) unstable; urgency=medium
1
2 * Fix a FTBFS (arm64 due to buffer overflow)
3 Thanks to Steve Langasek for the patch
4 (Closes: #895111)
5
6 -- Sylvestre Ledru <sylvestre@debian.org> Sat, 07 Apr 2018 23:40:10 +0200
7
08 ohcount (3.1.0-1) unstable; urgency=medium
19
210 * New upstream release
0 Description: fix a buffer overflow due to an off-by one
1 This manifests as a build failure on arm64 in Ubuntu.
2 Author: Steve Langasek <steve.langasek@ubuntu.com>
3 Last-Modified: 2018-04-07
4
5 Index: ohcount-3.1.0/src/diff.c
6 ===================================================================
7 --- ohcount-3.1.0.orig/src/diff.c
8 +++ ohcount-3.1.0/src/diff.c
9 @@ -315,7 +315,7 @@ static int hash(char *line) {
10 void prepare(int i, const char *buf) {
11 struct line *p;
12 int j;
13 - char bufcpy[strlen(buf)];
14 + char bufcpy[strlen(buf)+1];
15 char *l;
16
17 p = malloc(3*sizeof(struct line));
00 disabled_test_suite.patch
11 conflicting-type.diff
22 build-cflags.diff
3 fix-buffer-overflow.patch