pytorch
0517222d - [package] Correct usage of miniz API in PyTorchStreamReader (#55725)

Commit
3 years ago
[package] Correct usage of miniz API in PyTorchStreamReader (#55725) Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/55725 We were previously checking m_last_error on the miniz struct directly, which fails to preserve internal invariants and can the leave the reader broken in specific situations (reading a non-existent file). Using the provided error checking API fixes this. Differential Revision: D27693105 Test Plan: Imported from OSS Reviewed By: SplitInfinity Pulled By: suo fbshipit-source-id: 20c520bb1d590fb75751bca1e970df4f2b7eb043
Author
suo suo
Parents
Loading