Patch for SDL_rotozoom.c

SDL_rotozoom.c allocates surfaces without checking for success. This is
the patch against version 2.0.9:

619a620,621

if (rz_src == NULL)
return NULL;
671a674,675
if (rz_dst == NULL)
return NULL;
676a681,682
if (rz_dst == NULL)
return NULL;
741a748,749
if (rz_dst == NULL)
return NULL;
746a755,756
if (rz_dst == NULL)
return NULL;
865a876,877
if (rz_src == NULL)
return NULL;
885a898,899
if (rz_dst == NULL)
return NULL;
890a905,906
if (rz_dst == NULL)
return NULL;

Oh, I also wanted to thank A. Schiffler for his attempt in obfuscating
the actual resize function (zoomSurfaceRGBA). I had to make a little
modification to it (blit to a SDL_Rect instead of the full image) and I
found easier to rewrite it from scratch. Good job. :(–
[] Guido Imperiale
[] CRV?ADER//KY
[] CVI.SCIENTIA.IMPERIVM

crusaderky at libero dot it
http://www.crusaderky.altervista.org

“Nam et ipsa scientia potestas est” (Knowledge is Power)
– Sir Francis Bacon (1561-1626)
Meditationes Sacrae, de Haeresibus

“The Net treats censorship as damage and routes around it.”
– John Gilmore

“I worry about my child and the Internet all the time, even though she’s
too young to have logged on yet. Here’s what I worry about. I worry that
10 or 15 years from now, she will come to me and say: ‘Daddy, where
were you when they took freedom of the press away from the Internet?’”
– Mike Godwin, Electronic Frontier Foundation

-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: application/pgp-signature
Size: 252 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20031128/13552b86/attachment.pgp

Kaixo CRV?ADER//KY!!!

SDL_rotozoom.c allocates surfaces without checking for success. This is
the patch against version 2.0.9:

619a620,621

if (rz_src == NULL)
  return NULL;

671a674,675

  if (rz_dst == NULL)
  	return NULL;

676a681,682

  if (rz_dst == NULL)
  	return NULL;

741a748,749

  if (rz_dst == NULL)
  	return NULL;

746a755,756

  if (rz_dst == NULL)
  	return NULL;

865a876,877

if (rz_src == NULL)
  return NULL;

885a898,899

if (rz_dst == NULL)
  return NULL;

890a905,906

if (rz_dst == NULL)
  return NULL;

Thanks for the patch…

Oh, I also wanted to thank A. Schiffler for his attempt in obfuscating
the actual resize function (zoomSurfaceRGBA). I had to make a little
modification to it (blit to a SDL_Rect instead of the full image) and I
found easier to rewrite it from scratch. Good job. :frowning:

Can send us your full version???

thanks!!!

Oh, I also wanted to thank A. Schiffler for his attempt in obfuscating
the actual resize function (zoomSurfaceRGBA). I had to make a little
modification to it (blit to a SDL_Rect instead of the full image) and I
found easier to rewrite it from scratch. Good job. :frowning:

Can send us your full version???

It’s work in progress. I’ll make you know when it’s ready… however
it’s the infamous SDL_BlitResize function.–
[] Guido Imperiale
[] CRV?ADER//KY
[] CVI.SCIENTIA.IMPERIVM

crusaderky at libero dot it
http://www.crusaderky.altervista.org

“Nam et ipsa scientia potestas est” (Knowledge is Power)
– Sir Francis Bacon (1561-1626)
Meditationes Sacrae, de Haeresibus

“The Net treats censorship as damage and routes around it.”
– John Gilmore

“I worry about my child and the Internet all the time, even though she’s
too young to have logged on yet. Here’s what I worry about. I worry that
10 or 15 years from now, she will come to me and say: ‘Daddy, where
were you when they took freedom of the press away from the Internet?’”
– Mike Godwin, Electronic Frontier Foundation

-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: application/pgp-signature
Size: 252 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20031128/dca9f40d/attachment.pgp