commit | bba4427b5dfba7f9cdab8fa2cac1399fceda3058 | [log] [tgz] |
---|---|---|
author | Paul Eggert <eggert@cs.ucla.edu> | Mon Aug 05 01:30:44 2024 -0700 |
committer | Paul Smith <psmith@gnu.org> | Mon Sep 02 14:43:24 2024 -0400 |
tree | 43623fe5090e30a8aa205bb428ac46562abf2ce1 | |
parent | c23a7e623209dae6fb36366c2e717690c9bfa042 [diff] |
Fix unlikely pointer overflow in abspath * src/function.c (abspath): len is now ptrdiff_t, to avoid GCC warning about comparing signed to unsigned. It really is a pointer difference, after all. Rejigger comparision to avoid undefined behavior if dest + len is an invalid pointer.