Corrected syntax error in examples/simplereader.c#264
Corrected syntax error in examples/simplereader.c#264thiagomacieira merged 3 commits intointel:mainfrom LinRaymond2006:raymond
examples/simplereader.c#264Conversation
thiagomacieira
left a comment
There was a problem hiding this comment.
Thank you for the report and the patch. You're right, this needs fixing.
There's a slightly better way than what you suggested.
Signed-off-by: linraymond2006 <linraymond2006@gmail.com>
|
By the way, I find some trivial security-related bugs (e.g. DoS, injections), should I open issues / pull requests here or report them privately to Intel PSIRT (as |
If you believe you've found a security issue, please report privately so we can analyse it without disclosing the details to the world. If we then determine it isn't a security issue, we can move to a regular bug report and fix. |
|
Got it! |
When compiling
simplereader.c, following error is generated.As shown below, member of
struct CborParserhas been slightly changed in commit 34c8452struct CborValue { const CborParser *parser; - const uint8_t *ptr; + union { + const uint8_t *ptr; + void *token; + } source; uint32_t remaining; uint16_t extra; uint8_t type; @@ -298,13 +319,14 @@ typedef struct CborValue CborValue;Therefore, replacing
it.ptrwithit.source.ptrwill fix the error.