[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #28511] string_t is limited to 1024 bytes
From: |
Kalle Olavi Niemitalo |
Subject: |
[bug #28511] string_t is limited to 1024 bytes |
Date: |
Wed, 7 Sep 2016 20:14:25 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0 |
Follow-up Comment #1, bug #28511 (project hurd):
Removing the limit would require changing the prototypes of several public
functions declared in <hurd/lookup.h> of glibc. 'string_t retry_name' might
be replaced with a pointer to a buffer-descriptor structure that contains: the
address of the buffer; the size of the buffer; and a code that indicates how
the buffer was allocated (malloc, mmap, or stack), i.e. how to free it if it
is replaced with a larger one.
Then if you're going to change those functions, it might be a good idea to add
void* parameters to function pointers, like in qsort_r vs. qsort. That would
reduce the need for nested functions, which require trampolines in an
executable stack.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?28511>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [bug #28511] string_t is limited to 1024 bytes,
Kalle Olavi Niemitalo <=