Add just-to-be-sure check to allocate_field().
authorPetteri Aimonen <jpa@git.mail.kapsi.fi>
Mon, 8 Sep 2014 14:33:05 +0000 (17:33 +0300)
committerPetteri Aimonen <jpa@git.mail.kapsi.fi>
Thu, 11 Sep 2014 16:22:57 +0000 (19:22 +0300)
commitd0466bdf439a190f4a17c502d8aeb40ef823b53e
tree203c5eeadd53ee3a39426653f7de98f7a9f517f4
parent5e3edb54159d98b90b4926d870d01648f54fc1d6
Add just-to-be-sure check to allocate_field().

This check will help to detect bugs earlier, and is quite lightweight
compared to malloc() anyway.
pb_decode.c