[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
canonicalize-lgpl: support paths of length > 2 GB
From: |
Bruno Haible |
Subject: |
canonicalize-lgpl: support paths of length > 2 GB |
Date: |
Fri, 14 Oct 2016 02:57:09 +0200 |
User-agent: |
KMail/4.8.5 (Linux/3.8.0-44-generic; KDE/4.8.5; x86_64; ; ) |
Hi,
If pathconf (name, _PC_PATH_MAX) returns a PATH_MAX value > 2 GB,
the readlink call in canonicalize-lgpl.c line 292 may return a length > 2 GB,
therefore the implicit cast (assignment) to 'int' will produce a wrong value.
If you agree with this patch, it'd be a good idea to propagate it into glibc
(it's the file stdlib/canonicalize.c there).
Bruno
0001-canonicalize-lgpl-Support-the-case-path_max-INT_MAX.patch
Description: Text Data
- canonicalize-lgpl: support paths of length > 2 GB,
Bruno Haible <=