Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #11700 +/- ##
==========================================
- Coverage 82.63% 82.62% -0.01%
==========================================
Files 919 919
Lines 248925 248927 +2
==========================================
- Hits 205703 205684 -19
- Misses 43222 43243 +21
Flags with carried forward coverage won't be shown. Click here to find out more. |
|
ERROR: ERROR: QA failed on SURI_TLPR1_alerts_cmp. Pipeline 22323 |
| jb_set_uint(js, "status", val); | ||
| uint32_t val; | ||
| if (ByteExtractStringUint32(&val, 10, 0, status_string) == 0) { | ||
| jb_set_uint(js, "status", val); |
There was a problem hiding this comment.
should we use htp_tx_t::response_status_number instead?
There was a problem hiding this comment.
response_status_number is used in the regular case when it is > 0
Trying to drop this whole else case
| } | ||
|
|
||
| MemBufferWriteRaw((*memb), (const uint8_t *)str, size); | ||
| DEBUG_VALIDATE_BUG_ON(size > UINT32_MAX); |
There was a problem hiding this comment.
can we change the size_t to uint32_t instead? size_t width depends on arch but we don't need that here
There was a problem hiding this comment.
Nope, because libjannson json_dump_callback wants size_t :-/
|
Continued in #11705 |
Link to redmine ticket:
https://redmine.openinfosecfoundation.org/issues/6186
Describe changes:
-Wshorten-64-to-32warnings for some files : output, streamSome commits of #9840
#11580 next batch
Still to do afterwards :
Victor, I let you review the stream stuff ;-)