]> git.cworth.org Git - apitrace/commit
Prevent infinite loop reading snappy compressed files.
authorJosé Fonseca <jfonseca@vmware.com>
Thu, 1 Sep 2011 12:30:53 +0000 (13:30 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Thu, 1 Sep 2011 12:52:11 +0000 (13:52 +0100)
commit8263960b845d1b8fa57465953a00fa7fb85b1d28
treeafa13e58969c93b51ddf5d9a3e2fa7119cc1f752
parentbcfe1fc406e917a03121eef0acd84909d8687dd6
Prevent infinite loop reading snappy compressed files.

We were still ending up in an infinite loop when flushCache() was called
inside the while-loop in rawRead(), because m_cacheSize was never zeroed.
trace_snappyfile.cpp