Check for overflows when allocating arrays

Closes rhbz#951432.

Signed-off-by: Martin Milata <mmilata@redhat.com>
Merge pull request #138 from abrt/rhbz951432-uint-wrap

Check for overflows when allocating arrays