-
Notifications
You must be signed in to change notification settings - Fork 368
Intrigus/fix/ss http resolve archive misc #7535
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: main
Are you sure you want to change the base?
Conversation
`location` would otherwise be passed as NULL to fd_memcpy.
tar.zstfoobar was previously accepted, but shouldn't.
9648996 to
8997d39
Compare
ripatel-fd
left a comment
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.
Thank you very much for the fixes, these look great. Would you mind adding unit tests reproducing the bugs you've fixed though? If you don't have time to do this, I'm happy to take it over. Just blocking for now to keep myself honest because if I merge this, I'll just forget to add tests later.
Performance Measurements ⏳
|
| } | ||
| } | ||
|
|
||
| if( FD_UNLIKELY( !location ) ) { |
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.
| if( FD_UNLIKELY( !location ) ) { | |
| if( FD_UNLIKELY( !location_len ) ) { |
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.
Is there a specific reason you prefer this?
When location is not NULL, location_len >= 1 should be guaranteed by line 264.
But of course happy to change this.
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.
We typically always do "slice empty?" type checks on the length field. It's a more complete solution because often slices with an invalid (but not NULL) base pointer and a zero size length are considered valid
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.
Makes sense!
Should I align
firedancer/src/discof/restore/utils/fd_sshttp.c
Lines 451 to 455 in 8997d39
| if( FD_UNLIKELY( !location ) ) { | |
| FD_LOG_WARNING(( "no location header in redirect response" )); | |
| fd_sshttp_cancel( http ); | |
| return FD_SSHTTP_ADVANCE_ERROR; | |
| } |
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.
yes please
A few of those functions are in |
No description provided.