qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [qemu/qemu] 47dc0e: hw/sparc/leon3: Don't call get_image_


From: GitHub
Subject: [Qemu-commits] [qemu/qemu] 47dc0e: hw/sparc/leon3: Don't call get_image_size() on a N...
Date: Mon, 08 Aug 2016 06:30:05 -0700

  Branch: refs/heads/master
  Home:   https://github.com/qemu/qemu
  Commit: 47dc0ec576c3d8748985e34d273c8dc0465c5ddb
      
https://github.com/qemu/qemu/commit/47dc0ec576c3d8748985e34d273c8dc0465c5ddb
  Author: Peter Maydell <address@hidden>
  Date:   2016-08-08 (Mon, 08 Aug 2016)

  Changed paths:
    M hw/sparc/leon3.c

  Log Message:
  -----------
  hw/sparc/leon3: Don't call get_image_size() on a NULL pointer

get_image_size() doesn't handle being passed a NULL pointer, so
avoid doing that. Spotted by the clang ub sanitizer (which notices
the attempt to pass NULL to open()).

Signed-off-by: Peter Maydell <address@hidden>
Message-id: address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]