https://sourceware.org/bugzilla/show_bug.cgi?id=33723

Zbigniew Jędrzejewski-Szmek <zbyszek at in dot waw.pl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |zbyszek at in dot waw.pl

--- Comment #22 from Zbigniew Jędrzejewski-Szmek <zbyszek at in dot waw.pl> ---
(I know that the latest findings suggest that the issue is elsewhere, but I'll
paste the comment I started writing anyway. Maybe this will help in future
debugging:

The code in add-det that handles .ar files is here:
https://github.com/keszybz/add-determinism/blob/main/src/add_det/handlers/ar.rs#L59

It reads the ar file magic and then proceeds to loop over the payload. The
payload header is read and adjusted without changing size, to overwrite the
fixed-size mtime, uid, gid fields. The size of the payload specified in the
header is then used to copy the payload verbatim. This loops until the end of
the file. This processing is done by copying stuff into a temporary file which
then replaces the original input if processing is successful. The total size or
payload contents do not change.

I was pretty careful to check all the magics in the per-file header, so if this
goes wrong, I think it's most likely that it'd just refuse to process the file
and report an error.)

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to