Xilinx / qemu

Xilinx's fork of Quick EMUlator (QEMU) with improved support and modelling for the Xilinx platforms.
https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/821395464/QEMU+User+Documentation
Other
238 stars 152 forks source link

No null check on info leads to segfault #85

Open fourierules opened 11 months ago

fourierules commented 11 months ago

During a quick little test of wemu with one of my custom device table blobs i kept hitting a segfault here. Why I'm getting here I'm not certain yet but the fact is everywhere else in the function info is guarded except here. Thought I'd bring it up...

https://github.com/Xilinx/qemu/blob/23b643ba1683a47ef49447a45643fe2172d6f8ca/hw/core/fdt_generic_util.c#L764