/usr/share/apport/whoopsie-upload-all:binascii.Error:/usr/share/apport/whoopsie-upload-all@249:main:collect_info:process_report:load:_decompress_line:b64decode
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Apport |
Fix Released
|
High
|
Unassigned | ||
apport (Ubuntu) |
Fix Released
|
High
|
Benjamin Drung | ||
Kinetic |
Won't Fix
|
High
|
Unassigned | ||
Lunar |
Triaged
|
High
|
Benjamin Drung |
Bug Description
Impact
======
apport-unpack and whoopsie-upload-all can crash when fed with a malformed problem report. They should print a proper error message instead of crashing.
Test Plan
=========
1. Create malformed report:
```
printf "CoreDump: base64\n H4sICAAAAAAC/
```
2. Try to unpack it:
```
apport-unpack malformed.crash unpack
```
It should print an error message instead of a stack trace.
Where problems could occur
=======
The patch touches the problem report handling and therefore can affect apport-unpack, apport-bug, whoopsie-
Original report
===============
```
Traceback (most recent call last):
File "/usr/share/
main()
File "/usr/share/
stamps = collect_info()
File "/usr/share/
res = process_report(r)
File "/usr/share/
r.load(f, binary=
File "/usr/lib/
bd, value = self._decompres
File "/usr/lib/
block = base64.
File "/usr/lib/
return binascii.
binascii.Error: Incorrect padding
```
The Ubuntu Error Tracker has been receiving reports about a problem regarding apport. This problem was most recently seen with package version 2.23.1-0ubuntu3, the problem page at https:/
If you do not have access to the Ubuntu Error Tracker and are a software developer, you can request it at http://
description: | updated |
Changed in apport: | |
milestone: | none → 2.24.0 |
importance: | Undecided → High |
Changed in apport (Ubuntu): | |
importance: | Undecided → High |
Changed in apport (Ubuntu Kinetic): | |
importance: | Undecided → High |
Changed in apport: | |
status: | Fix Committed → Fix Released |
description: | updated |
Changed in apport (Ubuntu): | |
status: | Fix Released → Triaged |
Changed in apport: | |
status: | Fix Released → Triaged |
Changed in apport: | |
status: | Fix Committed → Fix Released |
Upstream merge request: https:/ /github. com/canonical/ apport/ pull/30