Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix minor issues like NULL pointer check #108

Merged
merged 5 commits into from
Apr 23, 2024

Conversation

ajinkyaraj-23
Copy link
Collaborator

  • Add assert conditions while accessing baking_key in apdu_query.c
  • Refactor: change magic numbers to constant macros for better readability.
  • Refactor: Fix or Remove all TODO's
  • Fix null pointer checks as pre-conditions for functions in to_string.c
  • Fix issues with pytest environment.

1. Avoid buffer overflow by adding check on length for bip32_path.components array access.
2. Refactor derivation type check with standard TZ_ASSERT .
@ajinkyaraj-23 ajinkyaraj-23 linked an issue Apr 22, 2024 that may be closed by this pull request
Refactor unreachable code in TZ_ASSERT as condition was always true even if there is an error code in write_highwatermark
@ajinkyaraj-23 ajinkyaraj-23 force-pushed the 105-fix-minor-issues-with-code branch 6 times, most recently from 68160ab to ce58567 Compare April 23, 2024 10:35
@ajinkyaraj-23 ajinkyaraj-23 self-assigned this Apr 23, 2024
@ajinkyaraj-23 ajinkyaraj-23 added this to the Baking app upgrade milestone Apr 23, 2024
@ajinkyaraj-23 ajinkyaraj-23 requested a review from spalmer25 April 23, 2024 10:49
src/apdu_sign.c Outdated Show resolved Hide resolved
@ajinkyaraj-23 ajinkyaraj-23 force-pushed the 105-fix-minor-issues-with-code branch 3 times, most recently from bd8aec8 to fca5d8e Compare April 23, 2024 13:57
README.md Outdated Show resolved Hide resolved
@ajinkyaraj-23 ajinkyaraj-23 force-pushed the 105-fix-minor-issues-with-code branch from fca5d8e to e9fc2ba Compare April 23, 2024 14:16
@ajinkyaraj-23 ajinkyaraj-23 force-pushed the 105-fix-minor-issues-with-code branch from e9fc2ba to f07f208 Compare April 23, 2024 14:24
@ajinkyaraj-23 ajinkyaraj-23 merged commit 69ffacf into main Apr 23, 2024
29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix minor issues with code
2 participants