[kernel-sec-discuss] r2231 - scripts

Michael Gilbert gilbert-guest at alioth.debian.org
Sun Mar 20 17:57:04 UTC 2011


Author: gilbert-guest
Date: 2011-03-20 17:57:02 +0000 (Sun, 20 Mar 2011)
New Revision: 2231

Modified:
   scripts/find-commit
Log:
fix unhandled condition in find-commit

Modified: scripts/find-commit
===================================================================
--- scripts/find-commit	2011-03-18 14:37:15 UTC (rev 2230)
+++ scripts/find-commit	2011-03-20 17:57:02 UTC (rev 2231)
@@ -62,6 +62,8 @@
 split = [ '' , '' ]
 while ( split[1] != 'refs/heads/master' ):
     split = fread.readline().strip( ' \n' ).split()
+    if len( split ) < 2:
+        split = [ '' , '' ]
 remote_hash = split[0]
 fread.close()
 if ( local_hash != remote_hash ):




More information about the kernel-sec-discuss mailing list