XNNPACK icon indicating copy to clipboard operation
XNNPACK copied to clipboard

Possible null pointer dereference in logging

Open apach301 opened this issue 1 year ago • 0 comments

Hi,

I found some possible null pointer dereferences with Svace static analyzer.

  1. Possible dereference of NULL cache_provider in xnn_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

  1. Possible dereference of NULL resize_op in create_resize_bilinear2d_nhwc() during error logging: https://github.com/google/XNNPACK/blob/f9bc6b49145d6b68cc81fab1a5cb553b6d3b134b/src/operators/resize-bilinear-nhwc.c#L36-L60

apach301 avatar May 14 '24 10:05 apach301