diff options
author | Tom Marlin <tomm@bsquare.com> | 2011-05-13 13:24:55 -0500 |
---|---|---|
committer | Xavier Ducrohet <xav@android.com> | 2011-06-14 14:23:25 -0700 |
commit | 774abe7b7e463436107545250aa573c99e246a86 (patch) | |
tree | 23d1d0741fa12433280d15c7bd2828b689c07670 /.gitignore | |
parent | fbcb1883df3aa913c6a530e933880095173b4624 (diff) | |
download | system_core-774abe7b7e463436107545250aa573c99e246a86.zip system_core-774abe7b7e463436107545250aa573c99e246a86.tar.gz system_core-774abe7b7e463436107545250aa573c99e246a86.tar.bz2 |
Cherry-pick 49f1857d from master. do not merge.
Fixed adb crash due to accessing freed memory
Reset peers to NULL after closing them down. This prevents
other code from attempting to access that freed memory
(which prevents crashes). Previously, it left pointers to
freed memory and the "if (s->peer)" guards could not block
the attempt to access that memory later. Resolves many
crashes seen while taking repeated screenshots on WinXP.
Change-Id: I2697ba09971f2e0b51ff5c5e89a6fa20ebafb2c4
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions