tensorflow / tflite-micro

Infrastructure to enable deployment of ML models to low-power resource-constrained embedded targets (including microcontrollers and digital signal processors).
Apache License 2.0
1.74k stars 769 forks source link

Check whether the bias tensor is `nullptr` before accessing the type. #2566

Closed dansuh17 closed 1 month ago

dansuh17 commented 1 month ago

Prevents program crash due to null pointer dereference.

BUG=none

dansuh17 commented 1 month ago

First time trying to submit via github - am I supposed merge this myself or should I let the maintainers to submit this?

rascani commented 1 month ago

@Mergifyio refresh

mergify[bot] commented 1 month ago

refresh

✅ Pull request refreshed

rascani commented 1 month ago

First time trying to submit via github - am I supposed merge this myself or should I let the maintainers to submit this?

It should auto merge. One of the CI checks failed due to not having a BUG in the description. I added one and refreshed it, so it should go through now.