XNNPACK
XNNPACK copied to clipboard
Possible null pointer dereference in logging
Hi,
I found some possible null pointer dereferences with Svace static analyzer.
- Possible dereference of NULL
cache_providerinxnn_create_weights_cache_with_size(): https://github.com/google/XNNPACK/blob/f9bc6b49145d6b68cc81fab1a5cb553b6d3b134b/src/runtime.c#L164-L167
Bailing out occured with uninitialized cache_provider:
https://github.com/google/XNNPACK/blob/f9bc6b49145d6b68cc81fab1a5cb553b6d3b134b/src/runtime.c#L131-L143
- Possible dereference of NULL
resize_opincreate_resize_bilinear2d_nhwc()during error logging: https://github.com/google/XNNPACK/blob/f9bc6b49145d6b68cc81fab1a5cb553b6d3b134b/src/operators/resize-bilinear-nhwc.c#L36-L60