Hello everybody, this is my first message to the list.
I was reading through the code and i found that in several places does a
malloc and without checking if it is NULL just use the pointer. Example:
SDL-1.2.7/src/video/SDL_video.c: line 1269 function SDL_SetPalette
pp->colors = malloc(size);
memcpy(pp->colors, pal->colors, size);
SDL-1.2.7/src/video/SDL_RLEaccel.c: line 1870 function UnRLEAlpha
surface->pixels = malloc(bufsiz);
/* fill background with transparent pixels */
memset(surface->pixels, 0, bufsiz);
cat << NOTE
bufsiz is a testing i’m doing to improve speed in SDL
bufsiz=surface->h * surface->pitch;
NOTE
(note i’m having problems sending the email, this is my 7th time and now
works!)
—Publicidad--------------------------------------------------------
Juega con Ventura24.es, loter?a inteligente y multiplica tus
posibilidades!! http://www.iespana.es/_reloc/email.ventura