SARG ChangeLog
-Sep-22-2009 Version 2.2.6rc1
+Sep-23-2009 Version 2.2.6rc1
- Protection against buffer overflows in getword and friends and report the origin of the error instead of always blaming access.log.
- Patch #2224623 applied.
- Updated to autoconf 2.61.
- Compute the report date without resorting to the system command.
- Allow the use of spaces in the temporary directory.
- Fixed bug #2863485.
+ - Removed missplaced off_t as suggested in bug #2864425.
Mar-03-2008 Version 2.2.5
- new fix to the script insertion vulnerability via user-agent
exit(1);
}
- fseek(fp_usr, (off_t)0, SEEK_END);
+ fseek(fp_usr, 0, SEEK_END);
nreg = ftell(fp_usr);
if (nreg<0) {
printf("SARG: Cannot get the size of file %s",pwdfile);
exit(1);
}
nreg = nreg+5000;
- fseek(fp_usr, (off_t)0, SEEK_SET);
+ fseek(fp_usr, 0, SEEK_SET);
if((userfile=(char *) malloc(nreg))==NULL){
fprintf(stderr, "SARG: %s (%ld):\n",text[59],nreg);
exit(1);
}
- fseek(fp_ex, (off_t)0, SEEK_END);
+ fseek(fp_ex, 0, SEEK_END);
nreg = ftell(fp_ex);
if (nreg<0) {
printf("SARG: Cannot get the size of file %s",hexfile);
exit(1);
}
nreg += 11;
- fseek(fp_ex, (off_t)0, SEEK_SET);
+ fseek(fp_ex, 0, SEEK_SET);
if((excludefile=(char *) malloc(nreg))==NULL){
fprintf(stderr, "SARG: %s (%ld):\n",text[59],nreg);
exit(1);
}
- fseek(fp_ex, (off_t)0, SEEK_END);
+ fseek(fp_ex, 0, SEEK_END);
nreg = ftell(fp_ex);
if (nreg<0) {
printf("SARG: Cannot get the size of file %s",uexfile);
exit(1);
}
nreg += 11;
- fseek(fp_ex, (off_t)0, SEEK_SET);
+ fseek(fp_ex, 0, SEEK_SET);
if((excludeuser=(char *) malloc(nreg))==NULL){
fprintf(stderr, "SARG: %s (%ld):\n",text[59],nreg);