[Boost-bugs] [Boost C++ Libraries] #13586: array::rangecheck() allows access one element past end of array

Subject: [Boost-bugs] [Boost C++ Libraries] #13586: array::rangecheck() allows access one element past end of array
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2018-06-02 08:38:20


#13586: array::rangecheck() allows access one element past end of array
------------------------------+---------------------------
 Reporter: anonymous | Owner: Marshall Clow
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: array
  Version: Boost 1.67.0 | Severity: Problem
 Keywords: |
------------------------------+---------------------------
 The array::rangecheck method does not throw an out of range exception for
 an index equal to the array size.

 This makes the at() method not throw an exception for N as index value.
 This differs from the documentation for that method.

 Note: I discovered this by reading the code and have not made any tests of
 this behavior.

-- 
Ticket URL: <https://svn.boost.org/trac10/ticket/13586>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2018-06-02 08:42:47 UTC