[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    modeprobe-small.c patch to avaid a segfault if infovec is NULL
From:       Alfonso Ranieri <alforan () tin ! it>
Date:       2014-08-19 21:10:06
Message-ID: 53F3BD2E.1060309 () tin ! it
[Download RAW message or body]

--- modprobe-small.orig.c       2014-08-19 23:08:32.782302599 +0200
+++ modprobe-small.c    2014-08-19 23:07:42.056299346 +0200
@@ -640,7 +640,7 @@
          */

         /* rmmod or modprobe -r? unload module(s) */
-       if (is_rmmod) {
+       if (is_rmmod && (infovec != NULL)) {
                 infoidx = 0;
                 while ((info = infovec[infoidx++]) != NULL) {
                         int r;
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic