Originally posted by another user
Since nobody has done this before i decided to do it myself. basically scetool is a much better frontend than the fail0verflow tools, and i wanted to use it on pupexplode instead of the regular tools. but Sony left some 0 byte self/sprx on their PUPs (probably links to other selfs), so i got myself into wondering how i could bypass that issue, since scetool would segfault when trying to decrypt nothing. so i just decided to make _read_buffer return NULL when the size of the file would be 0 and when decrypting the file, if it was NULL, it’d just error out instead of trying to decrypt.