Skip to content
Snippets Groups Projects
  1. Feb 12, 2025
  2. Jan 01, 2018
  3. Jan 01, 2017
  4. Dec 30, 2016
    • Stephan Bosch's avatar
      global: Replaced all instances of memset(p, 0, sizeof(*p)) with the new i_zero() macro. · 131ea974
      Stephan Bosch authored
      Used the following script:
      
      C_FILES=`git ls-files *.c`
      H_FILES=`git ls-files *.h`
      for F in "$C_FILES $H_FILES"; do
              echo "$F"
        perl -p -i -e 's/safe_memset\(&\(?([^,]*)\)?,\s*0,\s*sizeof\(\g1\)\)/i_zero_safe(&$1)/g' $F
        perl -p -i -e 's/safe_memset\(([^,]*),\s*0,\s*sizeof\(\*\g1\)\)/i_zero_safe($1)/g' $F
        perl -p -i -e 's/memset\(&\(?([^,]*)\)?,\s*0,\s*sizeof\(\g1\)\)/i_zero(&$1)/g' $F
        perl -p -i -e 's/memset\(([^,]*),\s*0,\s*sizeof\(\*\g1\)\)/i_zero($1)/g' $F
      done
      131ea974
  5. Jan 03, 2016
  6. Aug 06, 2015
  7. Jan 08, 2015
  8. Jan 01, 2014
  9. Apr 06, 2013
  10. Apr 02, 2013
  11. Oct 12, 2012
  12. Aug 12, 2012
  13. Jan 07, 2012
  14. Dec 11, 2011
  15. Mar 05, 2011
  16. Sep 09, 2010
  17. Aug 17, 2010
  18. Jan 17, 2010
  19. Jan 13, 2010
  20. Jan 02, 2010
  21. Jan 01, 2010
  22. Dec 31, 2009
Loading

Consent

On this website, we use the web analytics service Matomo to analyze and review the use of our website. Through the collected statistics, we can improve our offerings and make them more appealing for you. Here, you can decide whether to allow us to process your data and set corresponding cookies for these purposes, in addition to technically necessary cookies. Further information on data protection—especially regarding "cookies" and "Matomo"—can be found in our privacy policy. You can withdraw your consent at any time.