[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Devel] Improper use of memcpy in _bdf_readstream
From: |
Manish Singh |
Subject: |
[Devel] Improper use of memcpy in _bdf_readstream |
Date: |
Sat, 30 Aug 2003 18:12:07 -0700 |
User-agent: |
Mutt/1.3.28i |
While running valgrind, I got:
==23811== Source and destination overlap in memcpy(0x445087c4, 0x445087c4, 184)
==23811== at 0x4001F9D5: memcpy (mac_replace_strmem.c:95)
==23811== by 0x40725034: _bdf_readstream (bdflib.c:699)
==23811== by 0x40726EB0: bdf_load_font (bdflib.c:2218)
==23811== by 0x40727534: BDF_Face_Init (bdfdrivr.c:222)
when loading:
/usr/X11R6/lib/X11/fonts/encodings/large/jisx0201.1976-0.enc.gz
Granted, this isn't something freetype can deal with, but it looks like a
problem could happen when reading small (but valid) bdf files.
Trivial patch attached.
-Yosh
trivial-memmove-bdflib.patch
Description: Text document
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Devel] Improper use of memcpy in _bdf_readstream,
Manish Singh <=