>
> > I think this can be the right way to check bound access.
> >
> https://github.com/rmeena840/rtems-tools/commit/81bf2a9b9e57e7911d519c4719c5126e29a7adbe
>
> No, the API classes are 1, 2, and 3. The indices into the table must be
> 0, 1, and 2. Don't add asserts in this path. Ignore items which have
> unexpected values.
>
Okay API is always returned in the range [ 1, 3 ]. Decrementing it by one
should be safe then.
https://github.com/rmeena840/rtems-tools/commit/8ff97b38970595f507e23f2a9a6e397ae1f70bb9



-- 
*Ravindra Kumar Meena*,
B. Tech. Computer Science and Engineering,
Indian Institute of Technology (Indian School of Mines)
<https://www.iitism.ac.in/>, Dhanbad
_______________________________________________
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Reply via email to