Merge lp://qastaging/~gue5t/midori/adblock-crashes into lp://qastaging/midori

Proposed by gue5t gue5t
Status: Merged
Approved by: Paweł Forysiuk
Approved revision: 7087
Merged at revision: 7098
Proposed branch: lp://qastaging/~gue5t/midori/adblock-crashes
Merge into: lp://qastaging/midori
Diff against target: 63 lines (+20/-17)
2 files modified
extensions/adblock/extension.vala (+1/-1)
extensions/adblock/updater.vala (+19/-16)
To merge this branch: bzr merge lp://qastaging/~gue5t/midori/adblock-crashes
Reviewer Review Type Date Requested Status
Paweł Forysiuk Approve
Review via email: mp+283732@code.qastaging.launchpad.net

Commit message

Fix crashes caused by out-of-bounds indexing in adblock

Description of the change

Pretty self-explanatory. In updater.vala, we rearrange control flow a little, so give that a bit of review. But it looks right to me and fixes the crashes without regressing any behavior.

The fixed israellist crash can be tested with the adblock subscription list https://raw.githubusercontent.com/ABPIsrael/EasyListHebrew/aebe4846c689c473e8dde278393f1d99b653d97c/EasyListHebrew.txt which is the last commit before the date format was fixed upstream.

To post a comment you must log in.
Revision history for this message
Paweł Forysiuk (tuxator) wrote :

I would suggest adding this unusual date string to our tests examples.

 Otherwise the change looks sensible.

Revision history for this message
gue5t gue5t (gue5t) wrote :

It looks like our test infrastructure for extensions is rather badly broken. I'm trying to fix that at <https://code.launchpad.net/%7Egue5t/midori/adblock-crashes/+merge/283732>.

Revision history for this message
gue5t gue5t (gue5t) wrote :
Revision history for this message
Paweł Forysiuk (tuxator) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches

to all changes: