Catch some cases where asking for ridiculously large allocations could result in a segfault.  Instead just return NULL.
Catch some cases where asking for ridiculously large allocations could
result in a segfault.  Instead just return NULL.

jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase