patch-src_parser_c 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. --- snort-2.8.5.1.orig/src/parser.c 2009-10-02 22:29:56.000000000 +0200
  2. +++ snort-2.8.5.1/src/parser.c 2009-12-27 17:20:27.000000000 +0100
  3. @@ -4362,7 +4362,7 @@ static char * ExpandVars(SnortConfig *sc
  4. if(!string || !*string || !strchr(string, '$'))
  5. return(string);
  6. - bzero((char *) estring, PARSERULE_SIZE);
  7. + memset((char *) estring, 0, PARSERULE_SIZE);
  8. i = j = 0;
  9. l_string = strlen(string);
  10. @@ -4381,7 +4381,7 @@ static char * ExpandVars(SnortConfig *sc
  11. if(c == '$' && !quote_toggle)
  12. {
  13. - bzero((char *) rawvarname, sizeof(rawvarname));
  14. + memset((char *) rawvarname, 0, sizeof(rawvarname));
  15. varname_completed = 0;
  16. name_only = 1;
  17. iv = i;
  18. @@ -4421,8 +4421,8 @@ static char * ExpandVars(SnortConfig *sc
  19. varcontents = NULL;
  20. - bzero((char *) varname, sizeof(varname));
  21. - bzero((char *) varaux, sizeof(varaux));
  22. + memset((char *) varname, 0, sizeof(varname));
  23. + memset((char *) varaux, 0, sizeof(varaux));
  24. varmodifier = ' ';
  25. p = strchr(rawvarname, ':');
  26. @@ -4439,7 +4439,7 @@ static char * ExpandVars(SnortConfig *sc
  27. else
  28. SnortStrncpy(varname, rawvarname, sizeof(varname));
  29. - bzero((char *) varbuffer, sizeof(varbuffer));
  30. + memset((char *) varbuffer, 0, sizeof(varbuffer));
  31. varcontents = VarSearch(sc, varname);