kientzle 5be5ef99a1 Certain filenames between 245 and 255 characters long would cause an
internal error if pax extended attributes were being generated.  Being
< 255 characters, the first-pass path editing (to generate a
ustar-compatible name for the main entry) wouldn't occur, and the
second-pass path editing (to generate a ustar name for the pax
attributes entry) assumed the input was already < 245 chars.

The core problem here was using an abbreviated algorithm for the
second pass that relied on the first pass having already run.  The
rewritten code is much simpler: It just uses the full path-shortening
algorithm for building both ustar pathnames.  This way, the second
ustar pathname will always be short enough.

Thanks to: Mark Cammidge
Related to: bin/74385
2005-04-23 17:46:51 +00:00
..
2005-03-17 08:39:12 +00:00
2005-04-22 18:57:32 +00:00
2005-01-24 20:01:28 +00:00
2004-11-04 08:25:03 +00:00
2005-02-28 17:15:31 +00:00
2005-02-13 22:25:33 +00:00
2005-02-13 23:45:54 +00:00
2005-02-09 18:07:17 +00:00
2005-03-01 20:32:05 +00:00
2005-02-13 23:45:54 +00:00
2005-02-14 18:40:31 +00:00
2004-07-01 18:20:57 +00:00
2005-02-09 18:07:17 +00:00
2004-12-29 02:18:24 +00:00
2004-07-05 06:59:17 +00:00
2005-03-20 10:37:56 +00:00
2005-01-28 17:01:54 +00:00
2004-12-21 10:49:29 +00:00
2004-12-21 12:05:11 +00:00
2005-04-22 18:57:32 +00:00
2005-02-13 22:25:33 +00:00
2004-12-21 10:49:29 +00:00
2004-12-21 10:16:04 +00:00
2003-08-18 15:25:39 +00:00
2005-01-20 09:17:07 +00:00
2005-02-14 02:41:41 +00:00
2005-01-20 09:17:07 +00:00
2004-12-21 10:16:04 +00:00
2005-04-23 03:34:43 +00:00
2005-01-21 10:35:40 +00:00
2005-04-23 02:20:35 +00:00
2005-01-20 09:17:07 +00:00
2005-02-13 23:45:54 +00:00
2004-12-21 10:49:29 +00:00
2004-12-21 09:33:47 +00:00
2004-12-21 12:05:11 +00:00