garga       2010-09-28 17:27:49 UTC

  FreeBSD ports repository

  Modified files:
    security/clamav      Makefile 
  Added files:
    security/clamav/files patch-libclamav__pdf.c 
  Log:
  Fix a mmap() error scanning PDF files, as described on clamav's git repo 
commit
  log:
  
  off_t is 64-bit, size_t is still 32-bit and that causes unexpected integer
  promotion here:
  map_off = map->len - 2048
  
  First the unsigned subtraction is performed, and then the unsigned (!) value
  is sign-extended to 64-bit. Hence a negative value becomes positive, which is
  wrong.
  
  Reported by:    Franz Schwartau <[email protected]>
  Obtained from:  https://wwws.clamav.net/bugzilla/show_bug.cgi?id=2300
  
  Revision  Changes    Path
  1.153     +1 -1      ports/security/clamav/Makefile
  1.1       +11 -0     ports/security/clamav/files/patch-libclamav__pdf.c (new)
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to