Changeset 2783 for libpipi


Ignore:
Timestamp:
Aug 27, 2008, 3:25:42 PM (12 years ago)
Author:
Jean-Yves Lamoureux
Message:
  • Fixed the second part of the previous buffer overflow. No comment.
Location:
libpipi/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libpipi/trunk/examples/line.c

    r2777 r2783  
    1212    char *srcname = NULL, *dstname = NULL;
    1313    pipi_image_t *img, *newimg;
    14     int count = 1000;
     14    int count = 10000;
    1515    int ret = 0;
    1616    if(argc < 2)
  • libpipi/trunk/pipi/paint/aline_template.h

    r2782 r2783  
    4646
    4747    PLOT(ix1, iy1,   val1);
    48     PLOT(ix1, iy1+1, val2);
     48    PLOT(ix1, (iy1+1)<y1?(iy1+1):iy1, val2);
    4949
    5050                yf = yend+g;
     
    5858
    5959    PLOT(ix2, iy2,   val1);
    60     PLOT(ix2, iy2+1, val2);
     60    PLOT(ix2, iy2+1<y2?iy2+1:iy2, val2);
    6161
    6262                for (x = (ix1+1); x < ix2; x++)
Note: See TracChangeset for help on using the changeset viewer.