Fwd: New Defects reported by Coverity Scan for GNURadio

Fix em fast! (Or figure out they are false alarms).

Philip

-------- Forwarded Message --------
Subject: New Defects reported by Coverity Scan for GNURadio
Date: Mon, 22 Sep 2014 00:01:27 -0700
From: [email protected]

Hi,

Please find the latest report on new defect(s) introduced to GNURadio
found with Coverity Scan.

Defect(s) Reported-by: Coverity Scan
Showing 1 of 1 defect(s)

** CID 1240027: Using invalid iterator (INVALIDATE_ITERATOR)
/var/lib/jenkins/jobs/GNURadio-master/workspace/gnuradio/gnuradio-runtime/lib/buffer.cc:
257 in gr::buffer::prune_tags(unsigned long)()


*** CID 1240027: Using invalid iterator (INVALIDATE_ITERATOR)
/var/lib/jenkins/jobs/GNURadio-master/workspace/gnuradio/gnuradio-runtime/lib/buffer.cc:
257 in gr::buffer::prune_tags(unsigned long)()
251 buffer’s mutex al la the scoped_lock line below.
252 */
253 std::multimap<uint64_t, tag_t>::iterator end_itr =
d_item_tags.lower_bound(max_time);
254 std::multimap<uint64_t, tag_t>::iterator begin_itr =
d_item_tags.begin();
255 while (begin_itr != end_itr) {
256 d_item_tags.erase(begin_itr);

CID 1240027:  Using invalid iterator  (INVALIDATE_ITERATOR)
Using invalid iterator "begin_itr".

257 begin_itr++;
258 }
259 }
260
261 long
262 buffer_ncurrently_allocated()


To view the defects in Coverity Scan visit,
http://scan.coverity.com/projects/588?tab=overview

To unsubscribe from the email notification for new defects,
http://scan5.coverity.com/cgi-bin/unsubscribe.py