[pacman-dev] [PATCH 0/4] download: cover some edge cases, and cleanup

Dave Reisner d at falconindy.com
Fri Jul 1 08:59:22 EDT 2011


Some patchwork I've had on a branch for too long now, and some newer code that
I'd like to get out in the open. I'm sure there's edge cases for my edge cases
that I haven't thought of.

The latter two patches are cleanup, and the beginning of a new struct which
will hopefully (eventually) let us move download progress calculations to the
back end.

Test it, break it, tell me it sucks.

Dave Reisner (4):
  dload: handle irregular URLs
  lib/dload: prevent large file attacks
  absorb some _alpm_download params into payload struct
  absorb fileinfo struct into dload_payload

 lib/libalpm/be_sync.c |   30 ++++--
 lib/libalpm/dload.c   |  281 ++++++++++++++++++++++++++++++++++---------------
 lib/libalpm/dload.h   |   17 ++-
 lib/libalpm/sync.c    |   32 ++++--
 4 files changed, 249 insertions(+), 111 deletions(-)

-- 
1.7.6



More information about the pacman-dev mailing list