diff options
author | vkalintiris <vasilis@netdata.cloud> | 2023-12-19 11:19:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-19 11:19:03 +0200 |
commit | 9ff1b5bdaed1bc314ccd245ba080c326597a89be (patch) | |
tree | 24bbc2fccf2cbe1bd9da6035978d2c5cd35088b4 /collectors | |
parent | 235b61ac22d4edefeaf86809a873672ba1294dca (diff) |
Fix UB of unaligned loads/stores and signed shifts. (#16628)
* Ignore build/ dir.
This directory is the default dir for many LSPs and for IDES using
cmake. "Reserve" it by ignoring it in .gitignore.
* Fix format specifier.
* Use unsigned literals when shifting.
* Do not sanitize shifts in libjudy.
* Fix unaligned loads/stores of dbengine's CRCs
* Fix unaligned load when partitioning metrics.
* Use unsigned literals when shifting.
Diffstat (limited to 'collectors')
-rw-r--r-- | collectors/xenstat.plugin/xenstat_plugin.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/collectors/xenstat.plugin/xenstat_plugin.c b/collectors/xenstat.plugin/xenstat_plugin.c index 319396d435..5dda26057c 100644 --- a/collectors/xenstat.plugin/xenstat_plugin.c +++ b/collectors/xenstat.plugin/xenstat_plugin.c @@ -1032,10 +1032,7 @@ int main(int argc, char **argv) { if(unlikely(netdata_exit)) break; if(unlikely(debug && iteration)) - fprintf(stderr, "xenstat.plugin: iteration %zu, dt %llu usec\n" - , iteration - , dt - ); + fprintf(stderr, "xenstat.plugin: iteration %zu, dt %lu usec\n", iteration, dt); if(likely(xhandle)) { if(unlikely(debug)) fprintf(stderr, "xenstat.plugin: calling xenstat_collect()\n"); |