-
Notifications
You must be signed in to change notification settings - Fork 19
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 h-b-o #1720 #906
fix h-b-o #1720 #906
Conversation
Signed-off-by: wayne <yukang.wei@emqx.io>
not quite sure about this, plz review this. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #906 +/- ##
==========================================
+ Coverage 65.17% 65.20% +0.02%
==========================================
Files 130 130
Lines 37911 37911
==========================================
+ Hits 24709 24719 +10
+ Misses 13202 13192 -10 ☔ View full report in Codecov by Sentry. |
Signed-off-by: wayne <yukang.wei@emqx.io>
Signed-off-by: wayne <yukang.wei@emqx.io>
302c834
to
87f64a8
Compare
Signed-off-by: wayne <yukang.wei@emqx.io>
if (cparam->pro_ver == MQTT_PROTOCOL_VERSION_v5) { | ||
// check length | ||
log_trace("Decoding MQTT V5 Properties"); | ||
if (pos >= max) | ||
if (pos + 4 >= max) |
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.
4 == 2 (property len) + 2 (clientid len). Am I right?
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.
it's the req of get_var_integer
.
src/supplemental/nanolib/conf_ver2.c
Outdated
// max len of pw is 20. | ||
char strpw[20]; | ||
sprintf(strpw, "%d", ele->valueint); | ||
cvector_push_back(auth->passwords, nng_strdup(strpw)); |
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.
I don't think the password can be a number
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.
I dont think it is really needed
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.
just revert it, gonna update docs and tell users to add ""
.
Signed-off-by: wayne <yukang.wei@emqx.io>
src/supplemental/nanolib/conf_ver2.c
Outdated
// max len of pw is 20. | ||
char strpw[20]; | ||
sprintf(strpw, "%d", ele->valueint); | ||
cvector_push_back(auth->passwords, nng_strdup(strpw)); |
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.
I dont think it is really needed
No description provided.