Coverity TAINTED_SCALAR - CID 12542 - plugins/inotify/src/inotify.cpp - in function: InotifyScreen::processEvents() - Calling function "read(int, void *, size_t)" taints argument "buf".

Bug #1101524 reported by Product Strategy Coverity Bug Uploader
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Compiz
New
Medium
Unassigned
0.9.9
New
Medium
Unassigned

Bug Description

This bug is exported from the Coverity Integration Manager on Canonical's servers. For information on how this is done please see this website: https://wiki.ubuntu.com/CanonicalProductStrategy/Coverity
CID: 12542
Checker: TAINTED_SCALAR
Category: array_index_read
CWE definition: http://cwe.mitre.org/data/definitions/20.html
File: /tmp/buildd/compiz-0.9.9~daily13.01.14/plugins/inotify/src/inotify.cpp
Function: InotifyScreen::processEvents()
Code snippet:
 70 {
 71 char buf[256 * (sizeof (struct inotify_event) + 16)];
 72 int len;
 73
CID 12542 - TAINTED_SCALAR
Calling function "read(int, void *, size_t)" taints argument "buf".
 74 len = read (fd, buf, sizeof (buf));
 75 if (len < 0)
 76 {
 77 perror ("read");
 78 }
 79 else

Revision history for this message
Product Strategy Coverity Bug Uploader (coverity-uploader) wrote : compiz-0.9.9: /tmp/buildd/compiz-0.9.9~daily13.01.14/plugins/inotify/src/inotify.cpp

Source file with Coverity annotations.

Changed in compiz:
importance: Undecided → Medium
MC Return (mc-return)
summary: - Coverity TAINTED_SCALAR - CID 12542
+ Coverity TAINTED_SCALAR - CID 12542 - plugins/inotify/src/inotify.cpp -
+ in function: InotifyScreen::processEvents() - Calling function
+ "read(int, void *, size_t)" taints argument "buf".
Changed in compiz:
milestone: none → 0.9.10.0
Changed in compiz:
milestone: 0.9.10.0 → 0.9.10.2
MC Return (mc-return)
Changed in compiz:
milestone: 0.9.10.2 → 0.9.11.0
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.