[SERVER-21641] Coverity analysis defect 76766: Out-of-bounds access Created: 23/Nov/15 Updated: 29/Nov/15 Resolved: 25/Nov/15 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | WiredTiger |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Coverity Collector User | Assignee: | Keith Bostic (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | coverity | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Operating System: | ALL | ||||||||||||||||
| Participants: | |||||||||||||||||
| Description |
|
Out-of-bounds access to a buffer Defect 76766 (STATIC_C)
|
| Comments |
| Comment by Githook User [ 25/Nov/15 ] | ||||||||||
|
Author: {u'username': u'keithbostic', u'name': u'Keith Bostic', u'email': u'keith@wiredtiger.com'}Message: Revert " This reverts commit c9907c6289d81d79266f4e2ccd34c84c6bf19783. | ||||||||||
| Comment by Githook User [ 25/Nov/15 ] | ||||||||||
|
Author: {u'username': u'ddanderson', u'name': u'Don Anderson', u'email': u'dda@ddanderson.com'}Message: | ||||||||||
| Comment by Keith Bostic (Inactive) [ 25/Nov/15 ] | ||||||||||
|
xgen-internal-coverity, this defect is a false positive. Coverity doesn't like code that looks like this:
Coverity complains that cfg[2] is an out-of-bounds access, and unfortunately, WiredTiger uses this construct all over the place. If there were some way to rewrite this so Coverity would quit complaining, that would be great. |