An issue exists when processing color-mapped run-length-encoded TGA images. When the `image type` is 9, the library allocates a buffer using a one-byte-per-pixel format via the `tga private sail pixel format()` function in `src/sail-codecs/tga/helpers.c`. However, the `sail codec load frame v8 tga()` function in `src/sail-codecs/tga/tga.c` calculates a `pixel size` of two to four bytes based on a `bpp` value provided in the image header. This discrepancy allows a crafted TGA file loaded through `sail load from file()` or `sail load from memory()` to write data beyond the heap pixel buffer, leading to heap corruption, system crashes, or potential code execution.