path: use GITERR_CHECK_ALLOC_BUF to verify passed in buffer
path: use GITERR_CHECK_ALLOC_BUF to verify passed in buffer

Corillian/libgit2,stewid/libgit2,saurabhsuniljain/libgit2,joshtriplett/libgit2,leoyanggit/libgit2,joshtriplett/libgit2,joshtriplett/libgit2,jeffhostetler/public_libgit2,joshtriplett/libgit2,jeffhostetler/public_libgit2,joshtriplett/libgit2,saurabhsuniljain/libgit2,leoyanggit/libgit2,leoyanggit/libgit2,stewid/libgit2,leoyanggit/libgit2,stewid/libgit2,Corillian/libgit2,Corillian/libgit2,stewid/libgit2,jeffhostetler/public_libgit2,saurabhsuniljain/libgit2,jeffhostetler/public_libgit2,saurabhsuniljain/libgit2,Corillian/libgit2,joshtriplett/libgit2,Corillian/libgit2,stewid/libgit2,jeffhostetler/public_libgit2,saurabhsuniljain/libgit2,Corillian/libgit2,saurabhsuniljain/libgit2,stewid/libgit2,leoyanggit/libgit2,leoyanggit/libgit2,jeffhostetler/public_libgit2