Comment 2 for bug 1415938

Revision history for this message
Ralph Lange (ralph-lange) wrote :

From Kay Kasemir:

Since we're still developing a lot and thus reboot IOCs, which then serve zero-sized UDF arrays for a while, the crashing gateway has turned into a nuisance.

I've patched our copy to pass the received array element count down from the CA event handler to the CPP code.
Once there, I'm only handling it for 'short' and 'long' arrays by zeroing the memory, then copying in what's been received.
So this is not a perfect fix, but it keeps it from crashing for those 2 data types.

Maybe the patch safes you some typing to pass the received array element count.
Otherwise, by all means ignore it and do the right thing.