Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix potential buffer overflow (facebookresearch#3146)
Summary: Size of pointer `sub_x` used instead of size of its data. This is likely to lead to a buffer overflow if the user is not lucky enough to be in a x32 bit machine where `sizeof(float*) == sizeof(float)`. You probably intend to write `sizeof(*sub_x)` or `sizeof(float)` ? Pull Request resolved: facebookresearch#3146 Reviewed By: mlomeli1 Differential Revision: D51618892 Pulled By: algoriddle fbshipit-source-id: 82acd98009515e963c547d5c62946f93ef5561b5
- Loading branch information