[PATCH] Teach rtems_tarfs_load() about symlinks

Sebastian Huber sebastian.huber at embedded-brains.de
Wed Dec 3 07:23:44 UTC 2014


On 03/12/14 07:07, Nick Withers wrote:
> Anyone be interested in committing this?
>
> On Fri, 2014-03-07 at 14:37 +1100, Nick Withers wrote:
>> >Hi all,
>> >
>> >The attached patch teaches rtems_tarfs_load() about symlinks, as well as
>> >making it fail if it encounters an unsupported tar file entry type
>> >(e.g., hard links) rather than silently ignoring the 512 B block.
>> >
>> >It tries to be consistent with the existing code which doesn't e.g.
>> >check tar string field NUL termination or printf() on error.
> -- Nick Withers Embedded Systems Programmer Department of Nuclear 
> Physics, Research School of Physics and Engineering The Australian 
> National University (CRICOS: 00120C)
>
> rtems_tarfs_load_symlinks.patch
>
>
> >From 165b5fd7e0c2d5042a69d209a360522f80697d71 Mon Sep 17 00:00:00 2001
> From: Nick Withers<nick.withers at anu.edu.au>
> Date: Fri, 7 Mar 2014 14:23:30 +1100
> Subject: [PATCH] Teach rtems_tarfs_load() about symlinks
>
> rtems_tarfs_load() will now also fail if it encounters unsupported tar file entry types (e.g., hard links)

I am not sure if this should now fail if it encounters an unsupported 
tar file entry.  This may crash applications that worked for a long time.

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20141203/ea257143/attachment.html>


More information about the devel mailing list