Changeset 2296 in MondoRescue for branches/2.2.10/tools/quality
- Timestamp:
- Jul 23, 2009, 2:53:30 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.10/tools/quality
r2267 r2296 28 28 29 29 # How many sprintf/strcat/strcpy vs asprintf are they 30 for 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 ; do30 for 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; do 31 31 echo "monodrescue $s usage : " 32 32 tot=0 … … 40 40 echo " " 41 41 echo "Qualimetry: " 42 find . -name '*.c' -o -name '*.h' | egrep -v '\.svn|/\*|monitas|/\*|mindi-busybox' | xargs grep -rw asprintf | egrep -v '/\*' | egrep -v 'asprintf\(&' > /tmp/mondo.quality42 pbg -w asprintf | grep -vE 'monitas|mindi-busybox|quality|/\*|asprintf\(&' > /tmp/mondo.quality 43 43 cat /tmp/mondo.quality 44 44 echo "monodrescue uses : `cat /tmp/mondo.quality | wc -l` asprintf without &" 45 find . -name '*.c' -o -name '*.h' | egrep -v '\.svn|/\*|monitas|/\*|mindi-busybox' | xargs grep -rw getline | egrep -v '/\*' | egrep -v 'getline\(&' > /tmp/mondo.quality45 pbg -w getline | grep -vE 'monitas|mindi-busybox|quality|/\*|getline\(&' > /tmp/mondo.quality 46 46 cat /tmp/mondo.quality 47 47 echo "monodrescue uses : `cat /tmp/mondo.quality | wc -l` getline without &" 48 48 pbg mr_asprintf | grep -vE '"|FNAME|ISOFS|syscall_sprintf|mr_mem|quality' > /tmp/mondo.quality 49 cat /tmp/mondo.quality 50 echo "monodrescue uses : `cat /tmp/mondo.quality | wc -l` mr_aspritnf without \"" 49 51 echo " " 50 52 echo "Splint: "
Note:
See TracChangeset
for help on using the changeset viewer.