nasa-jpl / ION-DTN

NASA Open Source ION Software implementation of Delay Tolerant Networking. ION development is managed by the Jet Propulsion Lab; regression testing and code management are provided by Ohio University.
https://nasa-jpl.github.io/ION-DTN/
Other
23 stars 6 forks source link

sizeof(pointer) fixes #36

Open j-huff opened 1 month ago

j-huff commented 1 month ago

Fixes issues related to incorrect use of sizeof.

Not exactly sure of the the intended purpose of the line:

privateKey = (privKeyBuf + (sizeof privKeyBuf - 1)) - privateKeyLen;

There's no way this was correct, as it would run off the beginning of the privKeyBuf (sizeof privKeyBuf would evaluate to 4 or 8 depending on the size of pointers).

j-huff commented 1 month ago

@plindner Is this repo accepting public pull requests?