-
Notifications
You must be signed in to change notification settings - Fork 116
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
Fix out of range #82
Fix out of range #82
Conversation
Hi @hidva, thanks for your contribution! In order for us to evaluate and accept your PR, we ask that you sign a contribution license agreement. |
164139f
to
2f1df76
Compare
I cannot receive verify letter from CITUSDATA. |
@@ -1388,7 +1416,7 @@ multiset_unpack(multiset_t * o_msp, | |||
} | |||
|
|||
// Make sure the explicit array fits in memory. | |||
if ((i_size - hdrsz) > MS_MAXDATA) |
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.
Do not forget 8 bytes occupy by ms_explicit_t::mse_nelem
!
So this should be (i_size - hdrsz) > (MS_MAXDATA - sizeof(size_t))
!
Fix fail in |
f1c2056
to
c8c16b7
Compare
You did it @hidva! Thank you for signing the Citus Data Contributor License Agreement. We can now accept this contribution and all future contributions from you. Somebody from our team will proceed with code review. |
All looks fine. Bit unnerving having regression output be architecture dependent |
* But we couldn't hard code it explicitly because we do not know current alignment schema | ||
* when compiling it. | ||
*/ | ||
static size_t |
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.
These functions should have prototypes declared at top of file with other static prototypes
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.
seems there are no declarations for most other functions
Before fix in
multiset_unpack()
:After fix:
The hlltest.sql is here
Before fix in
check_modifiers()
:After fix: