summaryrefslogtreecommitdiff
path: root/numpy/lib/function_base.py
diff options
context:
space:
mode:
authorYu Feng <feyu@google.com>2020-07-13 11:02:21 -0700
committerGitHub <noreply@github.com>2020-07-13 19:02:21 +0100
commitb6bd0a6f02276a37c0bd4d5e838fb94ba3eef6fd (patch)
tree335628a590a5a7b162849dfb58a8e3cb18c16c15 /numpy/lib/function_base.py
parentdd883ce53d0744c616de472215287d680c660ac5 (diff)
downloadnumpy-b6bd0a6f02276a37c0bd4d5e838fb94ba3eef6fd.tar.gz
MAINT: Avoid accessing uninitialized bytes getlimits (#16834)
This very simple flip of ordering avoids accessing the last 6 uninitialized bytes of 80-bit floats. Since none of our known `long double` patterns share the 10-byte prefix, this change does not effect behavior. Accessing these bytes does not invoke any undefined behavior, but it does cause false positives in tools like `msan` and `valgrind`, which is reason enough to avoid doing so. `msan` does not always report this error, likely due to the caching of memory allocation.
Diffstat (limited to 'numpy/lib/function_base.py')
0 files changed, 0 insertions, 0 deletions