all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* zipbomb handling should not be done in url-fetch/zipbomb
@ 2017-06-16  9:45 Arun Isaac
  2017-06-17 20:13 ` Ludovic Courtès
  0 siblings, 1 reply; 5+ messages in thread
From: Arun Isaac @ 2017-06-16  9:45 UTC (permalink / raw)
  To: guix-devel


* Proposal

zip bomb (zip archives without a top level directory) handling should
not be done in `url-fetch/zipbomb'. It should be implemented as a
boolean argument to the `unpack' phase.

Likewise for url-fetch/tarbomb as well.

* Rationale

I'm changing the download method of a few packages to url-fetch/zipbomb,
and the source gets downloaded again. This should not happen. It is the
same source archive after all. Why download another copy? In my
particular case, these source archives happen to be quite big (around
500 MB) as well.

The download method in source/origin/method should only be involved in
downloading. It should not handle how the downloaded source archive is
unpacked. That is the job of the `unpack' phase. url-fetch/zipbomb
unnecessarily duplicates the "unzip" command invocation.

* Feedback

WDYT?

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-06-21 10:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-16  9:45 zipbomb handling should not be done in url-fetch/zipbomb Arun Isaac
2017-06-17 20:13 ` Ludovic Courtès
2017-06-18 22:21   ` Eric Bavier
2017-06-20 18:49   ` Arun Isaac
2017-06-21 10:45     ` Ludovic Courtès

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.