ps3fw/cellL10n: avoid buffer OOB access

This commit is contained in:
DH 2025-04-24 14:13:34 +03:00
parent 7115851c82
commit ff85a1d76b

View file

@ -1356,7 +1356,7 @@ s32 SBCSstoUTF8s(vm::cptr<u8> src, vm::ptr<u32> src_len, vm::ptr<u8> dst, vm::pt
return SRCIllegal;
}
longval = *reinterpret_cast<u64*>(dst_tmp);
longval = *reinterpret_cast<u32*>(dst_tmp);
utf8_len = dst_len_tmp;
}