diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2020-12-29 17:08:11 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2020-12-29 17:12:25 -0800 |
commit | 6a5be910cc575aa9f48bf0a31280f8a72e533063 (patch) | |
tree | 287c97486c85cbfc020131e3252bac17b5e9e0c9 /tests/test-mtx.c | |
parent | b29d62dfaf8c55b18e9c8f30322a9bcde5255cb7 (diff) | |
download | gnulib-6a5be910cc575aa9f48bf0a31280f8a72e533063.tar.gz |
canonicalize: fix ptrdiff_t overflow bug
Problem reported by Adhemerval Zanella in:
https://sourceware.org/pipermail/libc-alpha/2020-December/121182.html
* lib/canonicalize-lgpl.c, lib/canonicalize.c:
Include intprops.h.
(NARROW_ADDRESSES): New constant.
* lib/canonicalize-lgpl.c (realpath_stk):m
* lib/canonicalize.c (canonicalize_filename_mode_stk):
Work even if strlen (END) does not fit in idx_t, or if adding
N to it overflows.
* modules/canonicalize, modules/canonicalize-lgpl (Depends-on):
Add intprops.
Diffstat (limited to 'tests/test-mtx.c')
0 files changed, 0 insertions, 0 deletions