imagetestburner [they/them]

  • 3 Posts
  • 8 Comments
Joined 4 years ago
cake
Cake day: March 5th, 2021

help-circle


  • well-designed software will quit out upon realizing that it's malformed. for instance, ffmpeg will tell you:

    [ffmpeg/video] mjpeg: mjpeg: unsupported coding type (ca)

    [ffmpeg/video] mjpeg: Can not process SOS before SOF, skipping

    [ffmpeg/video] mjpeg: No JPEG data found in image

    similarly, imagemagick will immediately reject it without causing any real harm.

    php-gd is one example of a library that will balloon up to using an absurd amount of ram in an effort to decode it. it will eventually produce an "image" (the screenshot i posted above) but in the meantime, it might use enough memory to crash or freeze the machine that's handling it.

    i imagine that other image libraries will have variable reactions to it. the way that chacha handled it, where it crashed the entire site for several minutes and then caused the image processing server to never properly recover, is probably the worst that i have ever seen.