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

Sets uninitialized socket file descriptors to -1 #248

Merged

Conversation

italo-sampaio
Copy link
Collaborator

Sets the value of uninitialized file descriptors on io.c to -1 instead of 0.

amendelzon
amendelzon previously approved these changes Jan 10, 2025
Sets the value of uninitialized file descriptors on io.c to -1 instead of 0.
@italo-sampaio italo-sampaio force-pushed the enhancement/241-fix-uninitialized-socket-fd branch from 3937a2b to efe80b5 Compare January 17, 2025 11:56
Returning -1 instead of 0 from start_server function
@italo-sampaio italo-sampaio force-pushed the enhancement/241-fix-uninitialized-socket-fd branch from efe80b5 to 355ff20 Compare January 17, 2025 12:05
Copy link
Collaborator

@amendelzon amendelzon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@italo-sampaio italo-sampaio merged commit 6073949 into feature/sgx Jan 17, 2025
5 checks passed
@italo-sampaio italo-sampaio deleted the enhancement/241-fix-uninitialized-socket-fd branch January 17, 2025 13:20
amendelzon added a commit that referenced this pull request Jan 21, 2025
* Fixes coverage report for feature/sgx branch (#224)

- Triggers the coverage workflow for pushes to master and feature/sgx branches
- Adds optional exec argument unit tests scripts
- Some additional fixes to unit tests

* Install SGX powHSM as a systemd service (#226)

* Version 5.3.2 ALPHA release (#227)

- Bumped version to 5.3.2
- Updated version references in firmware, middleware and unit tests
- Updated CHANGELOG

* Fix middleware docker image build (#252)

* Fixed C linting to include sgx code (#261)

- Including sgx code in lint-c/format-c scripts
- Fixed reported sgx linting errors

* Sets uninitialized socket file descriptors to -1 (#248)

Sets the value of uninitialized file descriptors on io.c to -1 instead of 0.

* Removes .gitignore from distribution builds (#264)

* Fixes signature for finalise function (#249)

Fixes the signature of finalise function so that it conforms with
the expected signal handler function signature

* Fixes formatting error identified by C linter (#266)

* Sanitizes key for kvstore (#247)

- Sanitizes the key before using it for file operations.
- Added unit tests for keyvalue_store module

* Added APDU buffer pointer validation to SGX enclave init sequence (#267)

- Using oe_is_outside_enclave to validate the APDU buffer in system_init
- Added and updated unit tests cases

* Moves finalise logic out of signal handler (#268)

Signal handler now only sets a flag that is checked in main

* Fixed C linting errors

---------

Co-authored-by: Italo Sampaio <[email protected]>
@amendelzon amendelzon mentioned this pull request Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants