|
Check that the PNaCl cache hash is truly derived from the bitcode content.
Do this before putting anything in the translation cache.
This catches errors where the user forgets to update the hash
and only updated the bitcode content. If we move the hash
into the bitcode header, such an error is *much* less likely,
but could still happen if we have a bug in our drivers.
We don't check when there is a cache hit. In the case of a
cache hit, we do not even attempt to download the bitcode.
Add a check for this in the pnacl_error_handling test.
Add a UMA error code ERROR_PNACL_CACHE_HASH_MISMATCH
BUG=https://code.google.com/p/nativeclient/issues/detail?id=3414
Total comments: 10
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+263 lines, -9 lines) |
Patch |
 |
M |
chrome/chrome_renderer.gypi
|
View
|
1
2
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/renderer/pepper/chrome_ppapi_interfaces.cc
|
View
|
|
2 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/renderer/pepper/ppb_nacl_hash_private_impl.h
|
View
|
1
|
1 chunk |
+23 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/renderer/pepper/ppb_nacl_hash_private_impl.cc
|
View
|
1
2
|
1 chunk |
+54 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/test/data/nacl/nacl_test_data.gyp
|
View
|
|
2 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/test/data/nacl/pnacl_error_handling/pnacl_bad_hash.nmf
|
View
|
1
|
1 chunk |
+10 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/test/data/nacl/pnacl_error_handling/pnacl_error_handling.html
|
View
|
1
|
1 chunk |
+8 lines, -0 lines |
0 comments
|
Download
|
 |
A |
ppapi/api/private/ppb_nacl_hash_private.idl
|
View
|
1
2
|
1 chunk |
+29 lines, -0 lines |
0 comments
|
Download
|
 |
A |
ppapi/c/private/ppb_nacl_hash_private.h
|
View
|
1
2
|
1 chunk |
+51 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ppapi/native_client/src/trusted/plugin/plugin_error.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
ppapi/native_client/src/trusted/plugin/pnacl_coordinator.h
|
View
|
|
3 chunks |
+7 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ppapi/native_client/src/trusted/plugin/pnacl_coordinator.cc
|
View
|
1
2
|
5 chunks |
+53 lines, -9 lines |
0 comments
|
Download
|
 |
M |
ppapi/native_client/src/trusted/plugin/pnacl_options.h
|
View
|
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.c
|
View
|
1
2
|
6 chunks |
+13 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ppapi/ppapi_sources.gypi
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
ppapi/tests/all_c_includes.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
Total messages: 17 (0 generated)
|