pytorch/test/cpp
Jeremy Lilley 443fe7ca0e [rpc] Avoid wireDeserializer overreading buffers by 1 byte (#36976)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/36976

The bounds check and the read were swapped in two places - I noticed
ASAN complaining in an unrelated change on an erroneous buffer.

Adding a couple simple test cases.
ghstack-source-id: 102606986

Test Plan: buck test mode/dev caffe2/test/cpp/rpc:

Differential Revision: D21148936

fbshipit-source-id: 7ec5007535f7310437ac1b9a72852a223b9dd29a
2020-04-21 17:01:45 -07:00
..
api [autograd] lower MAX_DEPTH limit according to TSAN limit (#36745) 2020-04-16 20:43:20 -07:00
common
dist_autograd Fix/relax CMake linter rules (#35574) 2020-03-27 16:52:33 -07:00
jit [resubmit] Move profiler to a dispatch wrapper (#36766) 2020-04-21 16:37:11 -07:00
rpc [rpc] Avoid wireDeserializer overreading buffers by 1 byte (#36976) 2020-04-21 17:01:45 -07:00
tensorexpr [TensorExpr] Fix bug in For elimination in the IRSimplifier. (#36965) 2020-04-21 13:38:09 -07:00
__init__.py