Changeset 2301 in MondoRescue for branches/2.2.10/tools/quality


Ignore:
Timestamp:
Jul 23, 2009, 7:52:12 PM (11 years ago)
Author:
Bruno Cornec
Message:
  • g_serial_string is managed dynamically
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.10/tools/quality

    r2300 r2301  
    2929# How many sprintf/strcat/strcpy vs asprintf are they
    3030for s in asprintf mr_asprintf sprintf snprintf strcat strcpy strncpy fgets malloc mr_malloc malloc_string getline mr_getline MAX_STR_LEN getcwd goto free mr_free paranoid_free paranoid_system mr_system assert; do
    31     echo "monodrescue $s usage : "
     31    echo "mondorescue $s usage : "
    3232    tot=0
    3333    for i in `find . -name '*.c' -o -name '*.h' |  egrep -v '\.svn|/\*|monitas|mindi-busybox' | xargs grep -r -c -w $s | egrep -v ":0$"`; do
     
    4242pbg -w asprintf | grep -vE 'monitas|mindi-busybox|quality|/\*|asprintf\(&' > /tmp/mondo.quality
    4343cat /tmp/mondo.quality
    44 echo "monodrescue uses : `cat /tmp/mondo.quality | wc -l` asprintf without &"
     44echo "mondorescue uses : `cat /tmp/mondo.quality | wc -l` asprintf without &"
    4545pbg -w getline | grep -vE 'monitas|mindi-busybox|quality|/\*|getline\(&' > /tmp/mondo.quality
    4646cat /tmp/mondo.quality
    47 echo "monodrescue uses : `cat /tmp/mondo.quality | wc -l` getline without &"
     47echo "mondorescue uses : `cat /tmp/mondo.quality | wc -l` getline without &"
    4848pbg mr_asprintf | grep -vE '"|FNAME|ISOFS|syscall_sprintf|mr_mem|quality' > /tmp/mondo.quality
    4949cat /tmp/mondo.quality
    50 echo "monodrescue uses : `cat /tmp/mondo.quality | wc -l` mr_aspritnf without \""
     50echo "mondorescue uses : `cat /tmp/mondo.quality | wc -l` mr_aspritnf without \""
    5151echo " "
    5252echo "Splint: "
Note: See TracChangeset for help on using the changeset viewer.