lp:~alexmurray/whoopsie/whoopsie
- Get this branch:
- bzr branch lp:~alexmurray/whoopsie/whoopsie
Branch merges
- Iain Lane (community): Needs Information
-
Diff: 26 lines (+3/-3)2 files modifiedsrc/utils.c (+1/-1)
src/whoopsie.c (+2/-2)
Related bugs
Related blueprints
Branch information
Recent revisions
- 707. By Alex Murray
-
src/utils.c: Don't use strncpy where strcpy will suffice
The code is already very careful to allocate a buffer large enough for the
length of the filename extension so there is no need to use strncpy to
append this to the new filename - instead can just use strcpy.With the previous code, whoopsie would FTBFS against gcc 8.3.0 due to the
following error as a result of this use of strncpy - so changing to strcpy
fixes the build:In file included from /usr/include/
string. h:494,
from src/utils.c:19:
In function ‘strncpy’,
inlined from ‘change_file_extension’ at src/utils.c:92:5,
inlined from ‘change_file_extension’ at src/utils.c:67:1:
/usr/include/x86_64- linux-gnu/ bits/string_ fortified. h:106:10: error: ‘__builtin_strncpy’ output truncated before terminating nul copying as many bytes from a string as its length [-Werror= stringop- truncation]
106 | return __builtin___strncpy_ chk (__dest, __src, __len, __bos (__dest));
| ^~~~~~~~~~~~~~ ~~~~~~~ ~~~~~~~ ~~~~~~~ ~~~~~~~ ~~~~~~~ ~~~~~~~ ~~~~~~
src/utils.c: In function ‘change_file_extension’ :
src/utils.c:89:15: note: length computed here
89 | ext_len = strlen (extension);
| ^~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors - 706. By Alex Murray
-
src/whoopsie.c: Integer overflow when handling large crash dumps (LP: #1830863)
Don't use signed integer types for lengths to ensure large crash dumps do
not cause signed integer overflowCVE-2019-11476
- 702. By Brian Murray
-
When the package is being purged remove /var/lib/
whoopsie/ whoopsie- id.
(LP: #1816767) - 700. By Brian Murray
-
if the only thing in the .uploaded is the OOPS ID then OOPS ID seems unnecessary.
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)
- Stacked on:
- lp:whoopsie