[1.5] Fix remainings warnings on 1.5 branch
[1.5] Prevent buffer overflow in openjpip code