-
Notifications
You must be signed in to change notification settings - Fork 0
fix(MESHAGEN-005): CU-86akhf8u3 2 review findings across 2 files #126
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -179,7 +179,7 @@ OPENSSL_store_u64_le(unsigned char *out, uint64_t val) | |
| static ossl_inline ossl_unused unsigned char * | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 𦩠π΄ Copy-paste bug: OSSL_HTOLE64 guard used for be64 load/store instead of OSSL_HTOBE64/OSSL_LE64TOH Changed the preprocessor guards in OPENSSL_store_u64_be ( π€ Prompt for AI agentsfix confidence: π’ 95 high β react π/π to teach the reviewer |
||
| OPENSSL_store_u64_be(unsigned char *out, uint64_t val) | ||
| { | ||
| # ifdef OSSL_HTOLE64 | ||
| # ifdef OSSL_HTOBE64 | ||
| uint64_t t = OSSL_HTOBE64(val); | ||
|
|
||
| memcpy(out, (unsigned char *)&t, 8); | ||
|
|
@@ -218,7 +218,7 @@ OPENSSL_load_u16_le(uint16_t *val, const unsigned char *in) | |
| static ossl_inline ossl_unused const unsigned char * | ||
| OPENSSL_load_u16_be(uint16_t *val, const unsigned char *in) | ||
| { | ||
| # ifdef OSSL_LE16TOH | ||
| # ifdef OSSL_BE16TOH | ||
| uint16_t t; | ||
|
|
||
| memcpy((unsigned char *)&t, in, 2); | ||
|
|
@@ -256,7 +256,7 @@ OPENSSL_load_u32_le(uint32_t *val, const unsigned char *in) | |
| static ossl_inline ossl_unused const unsigned char * | ||
| OPENSSL_load_u32_be(uint32_t *val, const unsigned char *in) | ||
| { | ||
| # ifdef OSSL_LE32TOH | ||
| # ifdef OSSL_BE32TOH | ||
| uint32_t t; | ||
|
|
||
| memcpy((unsigned char *)&t, in, 4); | ||
|
|
@@ -301,7 +301,7 @@ OPENSSL_load_u64_le(uint64_t *val, const unsigned char *in) | |
| static ossl_inline ossl_unused const unsigned char * | ||
| OPENSSL_load_u64_be(uint64_t *val, const unsigned char *in) | ||
| { | ||
| # ifdef OSSL_LE64TOH | ||
| # ifdef OSSL_BE64TOH | ||
| uint64_t t; | ||
|
|
||
| memcpy((unsigned char *)&t, in, 8); | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
𦩠π΄ new Buffer(4) used instead of Buffer.alloc/Buffer.from in exe.js
Replaced
new Buffer(4)withBuffer.alloc(4)in theOnWroteExefunction (the write-stream callback that writes the JS length before the trailing GUID), matching theBuffer.alloc/Buffer.fromstyle already used elsewhere in the file. This removes the deprecated/unsafe Buffer constructor and zero-fills the allocated memory.π€ Prompt for AI agents
fix confidence: π’ 98 high β react π/π to teach the reviewer