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/



Reply via email to