ppapi: fix crash/infinite loop in VideoEncoder
Depending on the libc used with your NaCl plugins, if the VideoEncoder proxy receives a EncodeReply message after it has been closed, the plugin will crash (newlib) or enter an infinite loop (glibc) because it tries to remove the end() iterator from a std::map. BUG=455409 TEST=run ppapi/examples/video_encode multiple times and verify the test keeps recording new videos Review URL: https://codereview.chromium.org/1138483002 Cr-Commit-Position: refs/heads/master@{#328997}
Showing
Please register or sign in to comment