Skip to content

Add ProtectedSession Related Log in Trace#872

Open
lixin5x wants to merge 1 commit intointel:masterfrom
lixin5x:trace_cp_2.24
Open

Add ProtectedSession Related Log in Trace#872
lixin5x wants to merge 1 commit intointel:masterfrom
lixin5x:trace_cp_2.24

Conversation

@lixin5x
Copy link
Contributor

@lixin5x lixin5x commented Feb 6, 2026

Dump structure data of protected session events.

va/va_trace.c Outdated

/* Print first 16 bytes of IV/CTR */
va_TraceMsg(trace_ctx, "\t\t\taes_cbc_iv_or_ctr = ");
for (unsigned int j = 0; j < 16 && j < 64; j++) {
Copy link
Contributor

Choose a reason for hiding this comment

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

duplicate condition: j < 16 && j < 64
more in following code

Copy link
Contributor Author

Choose a reason for hiding this comment

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

64 is the buffer size, i think it is meaningful to keep this code here to prevent overflow once someone want to change the dump size 16 by hand, maybe more clear if I use sizeof()

Dump structure data of protected session events.
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.

2 participants