qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* Potential missing checks
@ 2020-03-23 22:03 Mansour Ahmadi
  2020-03-24  9:24 ` Peter Maydell
  0 siblings, 1 reply; 5+ messages in thread
From: Mansour Ahmadi @ 2020-03-23 22:03 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 716 bytes --]

Hi QEMU developers,

I noticed the following two potential missing checks by static analysis and
detecting inconsistencies on the source code of QEMU. here is the result:

1)
Missing check on offset:
https://github.com/qemu/qemu/blob/c532b954d96f96d361ca31308f75f1b95bd4df76/disas/arm.c#L2728-L2733

While it is checked here:
https://github.com/qemu/qemu/blob/c532b954d96f96d361ca31308f75f1b95bd4df76/disas/arm.c#L1748-L1752

2)
Missing check on bmds->dirty_bitmap:
https://github.com/qemu/qemu/blob/c532b954d96f96d361ca31308f75f1b95bd4df76/migration/block.c#L377-L378

While it is checked here:
https://github.com/qemu/qemu/blob/c532b954d96f96d361ca31308f75f1b95bd4df76/migration/block.c#L363-L365

Thanks,
Mansour

[-- Attachment #2: Type: text/html, Size: 2990 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-03-24 23:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-23 22:03 Potential missing checks Mansour Ahmadi
2020-03-24  9:24 ` Peter Maydell
2020-03-24 20:39   ` Mansour Ahmadi
2020-03-24 21:17     ` Peter Maydell
2020-03-24 21:34       ` Mansour Ahmadi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).