qemu-commits
[Top][All Lists]
Advanced

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

[Qemu-commits] [qemu/qemu] 418c69: vfio/platform: fix use of freed memor


From: GitHub
Subject: [Qemu-commits] [qemu/qemu] 418c69: vfio/platform: fix use of freed memory
Date: Thu, 27 Jul 2017 03:29:17 -0700

  Branch: refs/heads/master
  Home:   https://github.com/qemu/qemu
  Commit: 418c69813f027cb1408aa2759022f5ca170a8c8c
      
https://github.com/qemu/qemu/commit/418c69813f027cb1408aa2759022f5ca170a8c8c
  Author: Philippe Mathieu-Daudé <address@hidden>
  Date:   2017-07-26 (Wed, 26 Jul 2017)

  Changed paths:
    M hw/vfio/platform.c

  Log Message:
  -----------
  vfio/platform: fix use of freed memory

free the data _after_ using it.

hw/vfio/platform.c:126:29: warning: Use of memory after it is freed
  qemu_set_fd_handler(*pfd, NULL, NULL, NULL);
                      ^~~~

Reported-by: Clang Static Analyzer
Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
Reviewed-by: Paolo Bonzini <address@hidden>
Signed-off-by: Alex Williamson <address@hidden>


  Commit: 96d2c2c57452f8b6bc3decae71435e7230f3432e
      
https://github.com/qemu/qemu/commit/96d2c2c57452f8b6bc3decae71435e7230f3432e
  Author: Philippe Mathieu-Daudé <address@hidden>
  Date:   2017-07-26 (Wed, 26 Jul 2017)

  Changed paths:
    M hw/vfio/pci.c

  Log Message:
  -----------
  vfio/pci: fix use of freed memory

hw/vfio/pci.c:308:29: warning: Use of memory after it is freed
  qemu_set_fd_handler(*pfd, NULL, NULL, vdev);
                      ^~~~

Reported-by: Clang Static Analyzer
Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
Reviewed-by: Paolo Bonzini <address@hidden>
Signed-off-by: Alex Williamson <address@hidden>


  Commit: 6be37cc583454ee27587a79b6008e22c3cc1a763
      
https://github.com/qemu/qemu/commit/6be37cc583454ee27587a79b6008e22c3cc1a763
  Author: Peter Maydell <address@hidden>
  Date:   2017-07-27 (Thu, 27 Jul 2017)

  Changed paths:
    M hw/vfio/pci.c
    M hw/vfio/platform.c

  Log Message:
  -----------
  Merge remote-tracking branch 'remotes/awilliam/tags/vfio-fixes-20170726.0' 
into staging

VFIO fixes 2017-07-26

 - Error path use after free bug fixes (Philippe Mathieu-Daudé)

# gpg: Signature made Wed 26 Jul 2017 18:49:00 BST
# gpg:                using RSA key 0x239B9B6E3BB08B22
# gpg: Good signature from "Alex Williamson <address@hidden>"
# gpg:                 aka "Alex Williamson <address@hidden>"
# gpg:                 aka "Alex Williamson <address@hidden>"
# gpg:                 aka "Alex Williamson <address@hidden>"
# Primary key fingerprint: 42F6 C04E 540B D1A9 9E7B  8A90 239B 9B6E 3BB0 8B22

* remotes/awilliam/tags/vfio-fixes-20170726.0:
  vfio/pci: fix use of freed memory
  vfio/platform: fix use of freed memory

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


Compare: https://github.com/qemu/qemu/compare/2dca6d9e7eb4...6be37cc58345

reply via email to

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