Closed
Bug 1334544
Opened 9 years ago
Closed 9 years ago
Truncation on MARChannelID
Categories
(Toolkit :: Application Update, defect)
Toolkit
Application Update
Tracking
()
RESOLVED
INVALID
People
(Reporter: tjr, Unassigned)
Details
MARChannelID is put into a 512 byte buffer here: https://dxr.mozilla.org/mozilla-central/source/toolkit/mozapps/update/updater/archivereader.cpp#144
But that value comes from MARStrings.MARChannelID here https://dxr.mozilla.org/mozilla-central/source/toolkit/mozapps/update/updater/updater.cpp#2587
Which is defined here as a 600 byte string: https://dxr.mozilla.org/mozilla-central/source/toolkit/mozapps/update/updater/updater.cpp#241
The discrepancy between the two channel variables means a long channel name might get truncated and confused with another. For example: the channels release[550 more characters]1 and release[550 more characters]2 would be considered the same channel I think.
Comment 1•9 years ago
|
||
That's for the channel ID read out of the update-settings.ini file. It's being compared against the channel ID read from the MAR file being applied, and the MAR parsing library limits that one to 64 bytes [1]. That's the documented maximum in the MAR format [2]. So truncating this one to anything longer than 64 doesn't make any difference.
[1] https://dxr.mozilla.org/mozilla-central/rev/1e0e193b0812f68a12fbd69198552af62347af1e/modules/libmar/src/mar_read.c#458
[2] https://wiki.mozilla.org/Software_Update:MAR#Product_Information_Block
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•