qemu-4.1.0/roms/SLOF/lib/libnet/ping.c:122: logical fault

Bug #1840646 reported by dcb
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
QEMU
Invalid
Undecided
Unassigned

Bug Description

qemu-4.1.0/roms/SLOF/lib/libnet/ping.c:122:16: warning: Logical conjunction always evaluates to false: alen <= 0 && alen >= sizeof(args) - 1. [incorrectLogicOperator]

Source code is

   if (alen <= 0 && alen >= sizeof(args) - 1) {

Maybe better code:

   if (alen <= 0 || alen >= sizeof(args) - 1) {

Revision history for this message
Peter Maydell (pmaydell) wrote :

This isn't QEMU code -- it's just the source for third-party ROMs that we ship with QEMU because we also ship the ROM binaries. Please report it to the upstream project.

Changed in qemu:
status: New → Invalid
Revision history for this message
Peter Maydell (pmaydell) wrote :

(Anything in a git submodule will be third-party code that's not part of QEMU.)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.