stevedlawrence opened a new pull request, #1198: URL: https://github.com/apache/daffodil/pull/1198
> [!NOTE] > This might want to wait until 3.8.0 or a later release where we can fix all the prefix length issues If parsing a prefix length fails, we just pretend the value was zero and rely on callers to check the processor status and ignore the zero value if it failed. However, even if the parse fails we still do the negative prefix length SDE checks. And if the prefix has an adjustment due to the prefixIncludesPrefixLength property, that zero is a adjusted to become negative and causes an SDE instead of a PE. Really, we shouldn't do these SDE checks at all if we failed to parse a prefix length since the zero is meaningless and should be ignored. This rearranges the logic so we only check for negative prefix values if the prefix parse actually succeeded. This also skips calculating contentLength/valueLength if the parse fails. DAFFODIL-2688 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
