Repository navigation
Conversation
Keep finite values and reject overflow through the existing controlled failure boundary. Signed-off-by: Srinivasa Dinakar Jainti <dinakarjs@gmail.com> Signed-off-by: Srinivasa Consultants <78673153+dinakarjs@users.noreply.github.com>
7 tasks done
|
🟡 Contributor Check: MEDIUM
Automated check by AgenTrust Contributor Check. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The agentrust-io#819 response parser rejects literal NaN/Infinity but allows numeric exponent overflow to become infinity in retained EAR evidence. Add a finite
parse_floathook; overflow follows the existing NRASError boundary, andtry_appraisereturns None. Finite exponents remain accepted, including nested values. This addresses Carlos's public current-head review; it does not claim a signature or hardware-attestation bypass or contact live NRAS.Based directly on upstream 6c2c2ea. Preserve the author's history when adopting.
Validation on Python 3.12.14 using unchanged hash-required requirements/dev.txt and an editable --no-deps install:
pytest tests/unit/test_nras_client.py -q: 53 passed.NO_PROXY='*' no_proxy='*' python -m pytest tests/unit -q: 2580 passed, 6 skipped. The first run before the editable install and test proxy isolation had 11 environment failures (missing package metadata/import and inherited SOCKS proxy); the final command above resolves those prerequisites without a source workaround.Independent author adoption, hosted CI and the two-maintainer review rule for TEE paths remain. Draft companion, not an upstream approval or merge. Prepared with OpenAI Codex; DCO sign-offs included.