Closed Bug 1212601 Opened 9 years ago Closed 8 years ago

Table creation fails when parsing large digest256 list

Categories

(Toolkit :: Safe Browsing, defect)

defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME
mozilla43

People

(Reporter: mwobensmith, Assigned: dimi)

References

()

Details

(Whiteboard: tpe-seceng)

Attachments

(1 file)

1. Unzip sample files.
2. Launch pyserver13000.py
3. Launch pyserver13001.py
4. Change Fx42 prefs for shavar list URL to "localhost:13000"
5. Delete on-disk tracking protection tables. 
6. Relaunch Fx42 via command line, using environment variables from here for debugging: https://wiki.mozilla.org/Phishing_Protection#QA
7. Watch terminal for debug output.

Results:
Indicates that 88mb list was accepted and parsed, but tables were not created.

Expected:
Create the tables or indicate reason for failure.
Attached file stdout.txt
Summary: Table creation fails when parsing large shavar list → Table creation fails when parsing large digest256 list
Component: DOM: Security → Safe Browsing
Product: Core → Toolkit
We should figure out what it is that makes the parsing fail first and then put a reasonable file size limit on this (bug 1212600).
Whiteboard: tpe-seceng
Hi François,
If you don't mind, i would like to work on this bug
Assignee: francois → dlee
Status: NEW → ASSIGNED
(In reply to Matt Wobensmith [:mwobensmith][:matt] from comment #2)
> Test files too big to attach here. 
> 
> Download ZIP instead:
> http://people.mozilla.org/~mwobensmith/test/1212601.zip

Hi Matt,
I can't download the file now, could you help provide it again ? thanks!
Flags: needinfo?(mwobensmith)
Hi Dimi, the file has been uploaded. Give it a try.
Flags: needinfo?(mwobensmith)
Version: 43 Branch → unspecified
(In reply to Matt Wobensmith [:mwobensmith][:matt] from comment #6)
> Hi Dimi, the file has been uploaded. Give it a try.
Thanks!

The reason that makes parsing fail is because of maximum chunk size allowed[1].
The file indicates that chunk size is 88317856 (a:1444243726:32:88317856), which over the current threshold (1024*1024)[2]

[1] https://dxr.mozilla.org/mozilla-central/source/toolkit/components/url-classifier/ProtocolParser.cpp#216
[2] https://dxr.mozilla.org/mozilla-central/source/toolkit/components/url-classifier/ProtocolParser.cpp#23
(In reply to Dimi Lee[:dimi][:dlee] from comment #7)
> The reason that makes parsing fail is because of maximum chunk size
> allowed[1].
> The file indicates that chunk size is 88317856 (a:1444243726:32:88317856),
> which over the current threshold (1024*1024)[2]

That looks like it's working as intended: throwing an error and aborting the parsing.
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: