char boundaries
authorAnas Nashif <anas.nashif@intel.com>
Tue, 6 Nov 2012 19:47:30 +0000 (11:47 -0800)
committerJohn L. Whiteman <john.l.whiteman@intel.com>
Mon, 13 Oct 2014 18:15:47 +0000 (11:15 -0700)
Change-Id: I99627621522116ef476d20cda4eb75b4f23c5a63

cmd/modutil/install-ds.c

index 9d3777a..be0007d 100644 (file)
@@ -221,7 +221,7 @@ Pk11Install_File_Generate(Pk11Install_File* _this,
                                        goto loser;
                                }
                                _this->permissions = (int) strtol(subval->string, &endp, 8);
-                               if(*endp != '\0') {
+                               if(*endp != '\0' || subval->string[0] == '\0') {
                                        errStr = PR_smprintf(errString[BOGUS_FILE_PERMISSIONS],
                                     _this->jarPath);
                                        goto loser;