SafeCoding233

Results 3 issues of SafeCoding233

The lib func `strdup` and `kstrdup` may return null pointers on memory allocation failures. I added checks for the unchecked calls to those two functions. Specifically, for the four `firmware.c`...

`apr_palloc` may return NULL pointer. It may trigger undefined behavior in later usage. For example, passing a null pointer to `memcpy` may trigger undefined behavior. Thus it is better to...

I added two `delete`s for the import entry and the `source` file entry before an exception is thrown. If the client code captures and tries to recover from the exception,...