Josh Adams created DAFFODIL-2411:
------------------------------------
Summary: Investigate potential Integer overflows
Key: DAFFODIL-2411
URL: https://issues.apache.org/jira/browse/DAFFODIL-2411
Project: Daffodil
Issue Type: Bug
Components: Back End
Affects Versions: 3.0.0
Reporter: Josh Adams
Fix For: 3.0.0
There are a number of places where we are getting a length of an element or an
array that could potentially cause an integer overflow to occur.
For example, all the binary number parsers have a getBitLength funciton that
returns an int. It is unlikely for a binary number to have such a large length
that it overflows, but if there were bad data or a bad dfdl:length expression,
it could definately happen.
Currently there are calls in many different places that would need range checks
to prevent this, so it may require some re-architecture to provide a clean
solution.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)