httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc Slemko <m...@hyperreal.com>
Subject cvs commit: apache/src mod_rewrite.c
Date Thu, 06 Feb 1997 05:16:58 GMT
marc        97/02/05 21:16:57

  Modified:    src       mod_rewrite.c
  Log:
  Bug fix for buffer overflow patches.
  
  Submitted by: lawrence@pacific.net.sg
  Reviewed by: Marc Slemko, Ralf Engelschall
  
  Revision  Changes    Path
  1.18      +1 -1      apache/src/mod_rewrite.c
  
  Index: mod_rewrite.c
  ===================================================================
  RCS file: /export/home/cvs/apache/src/mod_rewrite.c,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -C3 -r1.17 -r1.18
  *** mod_rewrite.c	1997/02/03 02:56:56	1.17
  --- mod_rewrite.c	1997/02/06 05:16:56	1.18
  ***************
  *** 2165,2171 ****
        char buf[MAX_STRING_LEN];
    
        dbmkey.dptr  = key;
  !     dbmkey.dsize = (strlen(key) < sizeof(buf) - 1 : strlen(key) ? sizeof(buf)-1);
        if ((dbmfp = dbm_open(file, O_RDONLY, 0666)) != NULL) {
            dbmval = dbm_fetch(dbmfp, dbmkey);
            if (dbmval.dptr != NULL) {
  --- 2165,2171 ----
        char buf[MAX_STRING_LEN];
    
        dbmkey.dptr  = key;
  !     dbmkey.dsize = (strlen(key) < sizeof(buf) - 1 ? strlen(key) : sizeof(buf)-1);
        if ((dbmfp = dbm_open(file, O_RDONLY, 0666)) != NULL) {
            dbmval = dbm_fetch(dbmfp, dbmkey);
            if (dbmval.dptr != NULL) {
  
  
  

Mime
View raw message