[RAPPS]
- Fix memory leaks
- Fix null-pointer dereference
- Fix user-after-free

CID #1206908
CID #1206915
CID #1206921
CID #1207022


git-svn-id: svn://svn.reactos.org/reactos/trunk/reactos@63021 97493ccd-5924-5043-b1f5-66cb403b36ce
[PSAPI]
Fix pointer arithmetic

CID #1206924


git-svn-id: svn://svn.reactos.org/reactos/trunk/reactos@63022 97493ccd-5924-5043-b1f5-66cb403b36ce
[NTOSKRNL]
Fix potential overflows

CID #701302
CID #1206856


git-svn-id: svn://svn.reactos.org/reactos/trunk/reactos@63023 97493ccd-5924-5043-b1f5-66cb403b36ce