New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 624567 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Jul 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 2
Type: Bug

Blocking:
issue 543161



Sign in to add a comment

Support accepting/decoding RICE encoded responses with PVer4

Project Member Reported by vakh@chromium.org, Jun 29 2016

Issue description

PVer4 supports both RICE and RAW encoding.
https://cs.chromium.org/chromium/src/components/safe_browsing_db/safebrowsing.proto?l=322

However, Chromium only supports RAW since there's no readily available RICE decoder library in Chromium codebase right now.

This issue requires finding harder for such a library, or importing it, and then using it.
 

Comment 2 by vakh@chromium.org, Jul 7 2016

Status: Verified (was: Assigned)
Project Member

Comment 5 by bugdroid1@chromium.org, Aug 4 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/605ab1c3447ebe4749d80c20a7d38c01a59c0887

commit 605ab1c3447ebe4749d80c20a7d38c01a59c0887
Author: vakh <vakh@chromium.org>
Date: Thu Aug 04 18:37:40 2016

Rice decode removals and additions and use them to update the store.

Also:
1. Add histograms for decoding additions/removals.
2. Update the histogram for ApplyUpdateResult to include the new failure values.

Please note that this CL does not enable RICE encoding yet since we still
telling the server that we can only process RAW updates. I'll make that tiny
change as a separate CL so that it is easier to rollback, if needed.

BUG= 543161 , 624567 

Review-Url: https://codereview.chromium.org/2190233002
Cr-Commit-Position: refs/heads/master@{#409844}

[modify] https://crrev.com/605ab1c3447ebe4749d80c20a7d38c01a59c0887/components/safe_browsing_db/v4_rice.cc
[modify] https://crrev.com/605ab1c3447ebe4749d80c20a7d38c01a59c0887/components/safe_browsing_db/v4_store.cc
[modify] https://crrev.com/605ab1c3447ebe4749d80c20a7d38c01a59c0887/components/safe_browsing_db/v4_store.h
[modify] https://crrev.com/605ab1c3447ebe4749d80c20a7d38c01a59c0887/components/safe_browsing_db/v4_store_unittest.cc
[modify] https://crrev.com/605ab1c3447ebe4749d80c20a7d38c01a59c0887/tools/metrics/histograms/histograms.xml

Project Member

Comment 6 by bugdroid1@chromium.org, Aug 19 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/1670eb02e8172d1750b70c50dbe3fb968e1f365f

commit 1670eb02e8172d1750b70c50dbe3fb968e1f365f
Author: vakh <vakh@chromium.org>
Date: Fri Aug 19 02:18:13 2016

PVer4: DecodeHashes needs to sort the output of the Rice decoder
Also:
1. Add tests to validate the Rice-decoder implementation.
2. Also, make the code for the case where the requested number of bits is greater than those left in the current_word_ easier to understand by calling GetNextBits recursively twice.

BUG= 543161 ,  624567 

Review-Url: https://codereview.chromium.org/2228393003
Cr-Commit-Position: refs/heads/master@{#413027}

[modify] https://crrev.com/1670eb02e8172d1750b70c50dbe3fb968e1f365f/components/safe_browsing_db/v4_rice.cc
[modify] https://crrev.com/1670eb02e8172d1750b70c50dbe3fb968e1f365f/components/safe_browsing_db/v4_rice.h
[modify] https://crrev.com/1670eb02e8172d1750b70c50dbe3fb968e1f365f/components/safe_browsing_db/v4_rice_unittest.cc
[modify] https://crrev.com/1670eb02e8172d1750b70c50dbe3fb968e1f365f/components/safe_browsing_db/v4_store.cc
[modify] https://crrev.com/1670eb02e8172d1750b70c50dbe3fb968e1f365f/components/safe_browsing_db/v4_store.h
[modify] https://crrev.com/1670eb02e8172d1750b70c50dbe3fb968e1f365f/components/safe_browsing_db/v4_store_unittest.cc

Comment 7 by vakh@chromium.org, Aug 19 2016

Status: Fixed (was: Verified)

Sign in to add a comment