summaryrefslogtreecommitdiff
path: root/scripts/update_payload/format_utils.py
diff options
context:
space:
mode:
authorAmin Hassani <ahassani@chromium.org>2018-07-31 23:55:43 -0700
committerchrome-bot <chrome-bot@chromium.org>2018-08-02 13:52:55 -0700
commit0cd9d7785f1cd56116b0f536e126481e9a5e5374 (patch)
treeff042051c64f9c4abeb3b213a7648d67493df8f5 /scripts/update_payload/format_utils.py
parent68512d42cc9e750f3d6690c27cbd13740a8af142 (diff)
update_engine: ReceivedBytes returns boolean on transfer completion/termination
Currently, there are situations that a HttpFetcherDelegate.ReceivedBytes can cause an eventual transfer completion or termination. This can eventually cause the object (holding an instance) of HttpFetcherDelegate to be deallocated. So there should not be any access to any member variable if the object is deallocated. In this CL we add a return value to ReceivedBytes to indicate explicitly that this situation happened so we can be careful about acceessing member variables after a call to this. BUG=chromium:868520 TEST=unittests Change-Id: I18db33910f6171c4e426d9bbe604fa1ae07a56dc Reviewed-on: https://chromium-review.googlesource.com/1158124 Commit-Ready: Amin Hassani <ahassani@chromium.org> Tested-by: Amin Hassani <ahassani@chromium.org> Reviewed-by: Amin Hassani <ahassani@chromium.org>
Diffstat (limited to 'scripts/update_payload/format_utils.py')
0 files changed, 0 insertions, 0 deletions