Package: firmware-b43-installer
Version: 1:019-2
Severity: minor

SSIA.  The installation process first downloads a 13MB tarball into /tmp
and then uncompresses the entirety into /tmp.  50MB may not be that much
space on a desktop or server, but for smaller embedded devices that could
completely exhaust their memory.

The following patch takes care of the worst of the issue:

--- ./var/lib/dpkg/info/firmware-b43-installer.postinst.orig  2015-04-05 
19:21:07.000000000 -0700
+++ ./var/lib/dpkg/info/firmware-b43-installer.postinst  2016-03-23 
18:44:53.000000000 -0700
@@ -31,7 +31,7 @@
           rm -rf /lib/firmware/b43
        fi
 fi
-tar xvjf broadcom-wl-5.100.138.tar.bz2
+tar xvjf broadcom-wl-5.100.138.tar.bz2 broadcom-wl-5.100.138/linux/wl_apsta.o
 cd broadcom-wl-5.100.138/linux
 b43-fwcutter -w "$FIRMWARE_INSTALL_DIR" wl_apsta.o
 rm -rf $tmp

Note this will need a bit of adjustment if #810161 is applied.


-- 
(\___(\___(\______          --=> 8-) EHM <=--          ______/)___/)___/)
 \BS (    |         ehem+sig...@m5p.com  PGP 87145445         |    )   /
  \_CS\   |  _____  -O #include <stddisclaimer.h> O-   _____  |   /  _/
8A19\___\_|_/58D2 7E3D DDF4 7BA6 <-PGP-> 41D1 B375 37D0 8714\_|_/___/5445

Reply via email to