Fail the fuzz test (reporting the *input* file as a problem) if capinfos aborts out--like it was for iSeries files prior to rev 25388.

svn path=/trunk/; revision=25389
This commit is contained in:
Jeff Morriss 2008-05-28 15:36:29 +00:00
parent 3251c05742
commit e70fdb05a7
1 changed files with 15 additions and 2 deletions

View File

@ -126,10 +126,23 @@ while [ $PASS -lt $MAX_PASSES -o $MAX_PASSES -lt 1 ] ; do
fi
echo -n " $CF: "
"$CAPINFOS" "$CF" > /dev/null 2>&1
if [ $? -ne 0 ] ; then
"$CAPINFOS" "$CF" > /dev/null 2> $TMP_DIR/$ERR_FILE
RETVAL=$?
if [ $RETVAL -eq 0 ] ; then
# have a valid file
rm -f $TMP_DIR/$ERR_FILE
elif [ $RETVAL -eq 1 ] ; then
echo "Not a valid capture file"
rm -f $TMP_DIR/$ERR_FILE
continue
else
echo ""
echo " ERROR"
echo -e "Processing failed. Capture info follows:\n"
echo " Input file: $CF"
echo -e "stderr follows:\n"
cat $TMP_DIR/$ERR_FILE
exit 1
fi
DISSECTOR_BUG=0