https://bugs.kde.org/show_bug.cgi?id=402395

            Bug ID: 402395
           Summary: coregrind/vgdb-invoker-solaris.c: 2 * poor error
                    checking ?
           Product: valgrind
           Version: 3.15 SVN
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: jsew...@acm.org
          Reporter: dcb...@hotmail.com
  Target Milestone: ---

SUMMARY

1.

[valgrind/coregrind/vgdb-invoker-solaris.c:177]: (style) Checking if unsigned
variable 'bytes' is less than zero.

  bytes = read(status_fd, &pstatus, sizeof(pstatus));
   if ((bytes < 0) || (bytes != sizeof(pstatus))) {

but

  size_t bytes = sizeof(ctl.cmd) + sizeof(ctl.arg.flags);

The return type of read is ssize_t, not size_t, isn't it ?

2.

[valgrind/coregrind/vgdb-invoker-solaris.c:404]: (style) Checking if unsigned
variable 'bytes' is less than zero.

Duplicate.

STEPS TO REPRODUCE
1. 
2. 
3. 

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
MacOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to