socsvn commit: r288531 - soc2013/def/crashdump-head/sbin/cryptcore
def at FreeBSD.org
def at FreeBSD.org
Sat Jul 18 13:19:43 UTC 2015
Author: def
Date: Sat Jul 18 13:19:42 2015
New Revision: 288531
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=288531
Log:
Report an error when it was unable to read data from input file.
Modified:
soc2013/def/crashdump-head/sbin/cryptcore/cryptcore.c
Modified: soc2013/def/crashdump-head/sbin/cryptcore/cryptcore.c
==============================================================================
--- soc2013/def/crashdump-head/sbin/cryptcore/cryptcore.c Sat Jul 18 13:13:39 2015 (r288530)
+++ soc2013/def/crashdump-head/sbin/cryptcore/cryptcore.c Sat Jul 18 13:19:42 2015 (r288531)
@@ -195,6 +195,10 @@
}
bufused = 0;
}
+ if (bytes < 0) {
+ pjdlog_errno(LOG_ERR, "Unable to read data from %s", input);
+ goto failed;
+ }
bzero(key, sizeof(key));
bzero(buf, sizeof(buf));
More information about the svn-soc-all
mailing list