On 12/29/20 7:39 PM, Paul Eggert wrote:
Unfortunately that patch didn't correctly treat size-calculation
overflow like other out-of-memory situations. I installed the attached
further patch into Gnulib.
And even that patch mishandled errno on size-calculation overflow,
so I installed the
On 12/29/20 5:21 PM, Paul Eggert wrote:
I installed the attached patch into Gnulib to fix the bug in a way I
hope is better.
Unfortunately that patch didn't correctly treat size-calculation
overflow like other out-of-memory situations. I installed the attached
further patch into Gnulib.
>From 6
I've just pushed the attached:
0001-hash-add-casts-to-float-to-avoid-clang-10-warnings.patch
Description: Binary data
On 12/29/20 11:34 AM, Adhemerval Zanella wrote:
idx_t len = strlen (end);
+ if (INT_ADD_OVERFLOW (len, n))
+{
+ __set_errno (ENAMETOOLONG);
+ goto error_nomem;
+}
The other patches in this glibc patch
> The continuous integration uncovered this problem: A testdir with modules
> 'bitset' and 'free-posix' fails to build.
Similarly, I get a conflict on Ubuntu 18.04:
gcc -g -O2 -o test-linkedhash_set test-linkedhash_set.o libtests.a
../gllib/libgnu.a libtests.a ../gllib/libgnu.a libtests.a -
Hello
Does someone has any updates on this ?
Thanks
Regards
Le mar. 1 déc. 2020 à 13:56, Thomas Andrejak a
écrit :
> Hello
>
> Can you explain what GCC options can interfere with this ?
>
> Thanks
>
> Regards
>
> Le dim. 29 nov. 2020 à 00:18, Thomas Andrejak
> a écrit :
>
>> Hello
>>
>> Than
Old implementation of realpath allocates a PATH_MAX using alloca for
each symlink in the path, leading to MAXSYMLINKS times PATH_MAX
maximum stack usage.
The test create a symlink with __eloop_threshold() loops and creates
a thread with minimum stack size (obtained through
support_small_stack_thre
This is an updated version from previous version synced with more
recent gnulib version b29d62dfa. It also contains a testscase for
the BZ #26421 and a fix to avoid a regression for BZ #22786.
Adhemerval Zanella (6):
Import idx.h from gnulib
Import filename.h from gnulib
malloc: Add scratch
And use to simplify stdlib/canonicalize.c implementation.
---
include/idx.h | 114 ++
1 file changed, 114 insertions(+)
create mode 100644 include/idx.h
diff --git a/include/idx.h b/include/idx.h
new file mode 100644
index 00..024b44ae98
--
It returns the minimum stack size large enough to cover most internal
glibc stack usage.
---
support/support_set_small_thread_stack_size.c | 12 +---
support/xthread.h | 2 ++
2 files changed, 11 insertions(+), 3 deletions(-)
diff --git a/support/support_set_s
It sync with gnulib version b29d62dfa with the following change:
--
diff --git a/stdlib/canonicalize.c b/stdlib/canonicalize.c
index 04fe95253f..c8f085b779 100644
--- a/stdlib/canonicalize.c
+++ b/stdlib/canonicalize.c
@@ -41,6 +41,7 @@
#include
#include
#include
+#include
#ifdef _LIBC
#
It returns a copy of the buffer up to a defined size. It will be used
on realpath sync with gnulib.
---
include/scratch_buffer.h| 16 +
malloc/Makefile | 1 +
malloc/Versions | 1 +
malloc/scratch_buffer_dupfree.c | 41
And use to simplify stdlib/canonicalize.c implementation.
---
include/filename.h | 110 +
1 file changed, 110 insertions(+)
create mode 100644 include/filename.h
diff --git a/include/filename.h b/include/filename.h
new file mode 100644
index 00
13 matches
Mail list logo