Do not treat negative return values from bz2 as size_t
commit00c2ecbb550f94b2f4b233501ee7c7afe163b42d
authorChristopher Dykes <cdykes@fb.com>
Thu, 29 Sep 2016 23:39:43 +0000 (29 16:39 -0700)
committerHhvm Bot <hhvm-bot-bot@fb.com>
Sat, 1 Oct 2016 03:25:43 +0000 (30 20:25 -0700)
tree851c7860c51e39b3afad0614219138592d006c5e
parentf0fc573f87094a3cf9de4ff5d4c6755eaccf3598
Do not treat negative return values from bz2 as size_t

Summary: Because it's just asking for trouble.

Reviewed By: aorenste

Differential Revision: D3799598

fbshipit-source-id: 2dffb1d61718c18fe178b5e78cc54b9f6fe6b1a6
hphp/runtime/ext/bz2/bz2-file.cpp