Changeset 357


Ignore:
Timestamp:
Jan 21, 2004, 2:49:26 PM (19 years ago)
Author:
Sam Hocevar
Message:
  • src/graphics.c: + Fixed a buffer overflow due to bad signed/unsigned handling.
  • src/event.c: + Disallow zero width or height in the X11 driver. + Fixed resizing in ncurses and slang.
  • THANKS: + Added the Source Mage maintainer.
Location:
libcaca/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/THANKS

    r355 r357  
    44Gildas Bazin <gbazin@netcourrier.com> - win32 driver improvements
    55Jan Hubicka <hubicka@freesoft.cz> - aafire
     6Ladislav Hagara <hgr@vabo.cz> - Source Mage spell
    67Michele Bini <mibin@tin.it> - original SDL plasma
    78Philip Balinov - Slackware package
  • libcaca/trunk/src/event.c

    r354 r357  
    279279                      / x11_font_height;
    280280
    281                 if(w == _caca_width && h == _caca_height)
     281                if(!w || !h || (w == _caca_width && h == _caca_height))
    282282                    continue;
    283283
     
    371371        {
    372372            _caca_resize_event = 0;
     373            _caca_resize = 1;
    373374            return CACA_EVENT_RESIZE;
    374375        }
     
    554555        {
    555556            _caca_resize_event = 0;
     557            _caca_resize = 1;
    556558            return CACA_EVENT_RESIZE;
    557559        }
     
    724726static void _push_event(unsigned int event)
    725727{
    726     if(events == EVENTBUF_LEN)
     728    if(!event || events == EVENTBUF_LEN)
    727729        return;
    728730    eventbuf[events] = event;
  • libcaca/trunk/src/graphics.c

    r354 r357  
    444444    if(x < 0)
    445445    {
     446        if(len < (unsigned int)-x)
     447            return;
    446448        len -= -x;
    447         if(len < 0)
    448             return;
    449449        s += -x;
    450450        x = 0;
Note: See TracChangeset for help on using the changeset viewer.