[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #28511] string_t is limited to 1024 bytes
From: |
Carl Fredrik Hammar |
Subject: |
[bug #28511] string_t is limited to 1024 bytes |
Date: |
Thu, 07 Jan 2010 16:36:30 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.5) Gecko/20091123 Iceweasel/3.5.5 (like Firefox/3.5.5; Debian-3.5.5-1) |
URL:
<http://savannah.gnu.org/bugs/?28511>
Summary: string_t is limited to 1024 bytes
Project: The GNU Hurd
Submitted by: hammy
Submitted on: Thu 07 Jan 2010 05:36:28 PM CET
Category: None
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Reproducibility: None
Size (loc): None
Planned Release: None
Effort: 0.00
Wiki-like text discussion box:
_______________________________________________________
Details:
The string type used by the Hurd in RPCs is limited to 1024 bytes.
This is because it is defined as the MIG type c_string[1024]. That is, it is
stored in an 1024 char array.
The solution would be to declare it unbounded, i.e. c_string[].
Unfortunately, MIG doesn't support unbounded strings like it does
for other arrays.
Effectively this leads to the Hurd having a PATH_MAX=1024, which
can be triggered like so:
p=$(for (( i=0; i < 64; i++ )); do echo -n 123456789abcdef/; done;)
mkdir -p $p
ls $p
_______________________________________________________
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,
Carl Fredrik Hammar <=