Warning: Can't synchronize with repository "(default)" (/home/git/ome.git does not appear to be a Git repository.). Look in the Trac log for more information.
Notice: In order to edit this ticket you need to be either: a Product Owner, The owner or the reporter of the ticket, or, in case of a Task not yet assigned, a team_member"

Task #5853 (closed)

Opened 13 years ago

Closed 13 years ago

Bug: C++ dereferences beyond available vector

Reported by: jamoore Owned by: jamoore
Priority: minor Milestone: OMERO-Beta4.3
Component: OmeroCpp Version: n.a.
Keywords: n.a. Cc:
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: 0.0d
Sprint: 2011-06-16 (14)

Description

The generated methods (in combined.vm) for ordered collections behave badly:

   image.pixelsSeq[0];

These should all be replaced with calls to .at(index) in order to throw out_of_range exceptions.

Change History (1)

comment:1 Changed 13 years ago by jmoore <josh@…>

  • Remaining Time changed from 0.1 to 0
  • Resolution set to fixed
  • Status changed from new to closed

(In [73f492e688468d8c6c81939beb66d3130b5632fd/ome.git] on branch develop) Use at for vector lookups in OmeroCpp (Fix #5853)

Note: See TracTickets for help on using tickets. You may also have a look at Agilo extensions to the ticket.

1.3.13-PRO © 2008-2011 Agilo Software all rights reserved (this page was served in: 0.66736 sec.)

We're Hiring!