| Code-Review | +1 |
lgtm...
Q: Do we still support M138?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
lgtm...
Q: Do we still support M138?
Sorry for the late reply. Yes, we need to support the LTS release.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Removed Lint-1 by AyeAye <android-bu...@system.gserviceaccount.com>
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
| Owners-Override | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
[M138-LTS] shared_dictionary: Fix Use-After-Free in SharedDictionaryOnDisk
This CL fixes a Use-After-Free bug in SharedDictionaryOnDisk::SetState.
Previously, SetState() accessed the member variable state_ within a loop
that executes callbacks. If one of these callbacks resulted in the
deletion of the SharedDictionaryOnDisk object, subsequent accesses to
state_ would result in a Use-After-Free.
This CL resolves the issue by using the local 'state' parameter instead
of the 'state_' member variable.
A regression test DeleteInReadAllCallback is added to
shared_dictionary_on_disk_unittest.cc to ensure that deleting the
dictionary in a ReadAll() callback does not cause a crash.
(cherry picked from commit d1fbfa27e826d6e6424c1f73b93a03744c2091fb)
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |