Changeset 4378


Ignore:
Timestamp:
Feb 27, 2010, 8:38:54 PM (10 years ago)
Author:
Sam Hocevar
Message:

Add a regression test for our Gentoo fread_chk() bug.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • zzuf/trunk/test/check-utils

    r4377 r4378  
    1818HAVE_GETC_UNLOCKED=$("$ZZAT" -l | grep >/dev/null 2>&1 '^  getc_unlocked(' && echo "y")
    1919HAVE_FGETC_UNLOCKED=$("$ZZAT" -l | grep >/dev/null 2>&1 '^  fgetc_unlocked(' && echo "y")
     20HAVE___FREAD_CHK=$("$ZZAT" -l | grep >/dev/null 2>&1 '^  __fread_chk(' && echo "y")
    2021
    2122checkutils()
     
    7677          check "$ZZOPTS" "$ZZAT -x \"repeat(33000,getc_unlocked(),feof(10),ungetc(),getline())\" $file" \
    7778                "sed getc_unlocked() bug regression"
     79        fi
     80        if [ "$HAVE___FREAD_CHK" = "y" ]; then
     81          check "$ZZOPTS" "$ZZAT -x \"repeat(-1,__fread_chk(1,1000),feof(1))\" $file" \
     82                "Gentoo __fread_chk() bug regression"
    7883        fi
    7984        # Misc tests
Note: See TracChangeset for help on using the changeset viewer.