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.with...@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.hu...@embedded-brains.de
PGP : Public key available on request.
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
_______________________________________________
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel