Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static void pciR3Piix3Reset(PIIX3State *d)
- {
- ....
- pci_conf[0x82] = 0x02;
- pci_conf[0xa0] = 0x08; //<==
- pci_conf[0xa0] = 0x08; //<==
- pci_conf[0xa2] = 0x00;
- pci_conf[0xa3] = 0x00;
- pci_conf[0xa4] = 0x00;
- pci_conf[0xa5] = 0x00;
- pci_conf[0xa6] = 0x00;
- pci_conf[0xa7] = 0x00;
- pci_conf[0xa8] = 0x0f;
- ....
- }
- This suspicious code was found in VirtualBox project by PVS-Studio static code analyzer.
- Warning message is:
- V519 The 'pci_conf[0xa0]' variable is assigned values twice successively. Perhaps this is a mistake. Check lines: 806, 807. devpci.cpp 807
- PVS-Studio is a static analyzer for detecting bugs in the source code of applications written in C, C++, C++11, C++/CX. Site: http://www.viva64.com/en/pvs-studio/
Advertisement
Add Comment
Please, Sign In to add comment