Skip to content
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 for asan build #21082

Merged
merged 1 commit into from Oct 30, 2017
Merged

fix for asan build #21082

merged 1 commit into from Oct 30, 2017

Conversation

smuzaffar
Copy link
Contributor

This PR fixes the build error we get with ASAN IBs

L1Trigger/CSCTriggerPrimitives/test/CSCTriggerPrimitivesReader.cc: In member function 'void CSCTriggerPrimitivesReader::drawCompHistos()':
L1Trigger/CSCTriggerPrimitives/test/CSCTriggerPrimitivesReader.cc:2696:6: error: '%d' directive output may be truncated writing between 1 and 10 bytes into a region of size 5 [-Werror=format-truncation=]
 void CSCTriggerPrimitivesReader::drawCompHistos() {
      ^~~~~~~~~~~~~~~~~~~~~~~~~~
L1Trigger/CSCTriggerPrimitives/test/CSCTriggerPrimitivesReader.cc:2696:6: note: directive argument in the range [1, 2147483647]
L1Trigger/CSCTriggerPrimitives/test/CSCTriggerPrimitivesReader.cc:2779:13: note: 'snprintf' output between 6 and 15 bytes into a destination of size 7
     snprintf(pagenum, sizeof(pagenum), "- %d -", page);  t.DrawText(0.9, 0.02, pagenum);
     ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
L1Trigger/CSCTriggerPrimitives/test/CSCTriggerPrimitivesReader.cc:2696:6: error: '%d' directive output may be truncated writing between 1 and 10 bytes into a region of size 5 [-Werror=format-truncation=]
 void CSCTriggerPrimitivesReader::drawCompHistos() {
      ^~~~~~~~~~~~~~~~~~~~~~~~~~
L1Trigger/CSCTriggerPrimitives/test/CSCTriggerPrimitivesReader.cc:2696:6: note: directive argument in the range [1, 2147483647]
L1Trigger/CSCTriggerPrimitives/test/CSCTriggerPrimitivesReader.cc:2831:13: note: 'snprintf' output between 6 and 15 bytes into a destination of size 7
     snprintf(pagenum, sizeof(pagenum), "- %d -", page);  t.DrawText(0.9, 0.02, pagenum);
     ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
L1Trigger/CSCTriggerPrimitives/test/CSCTriggerPrimitivesReader.cc:2696:6: error: '%d' directive output may be truncated writing between 1 and 10 bytes into a region of size 5 [-Werror=format-truncation=]
 void CSCTriggerPrimitivesReader::drawCompHistos() {
      ^~~~~~~~~~~~~~~~~~~~~~~~~~
L1Trigger/CSCTriggerPrimitives/test/CSCTriggerPrimitivesReader.cc:2696:6: note: directive argument in the range [1, 2147483647]
L1Trigger/CSCTriggerPrimitives/test/CSCTriggerPrimitivesReader.cc:2882:13: note: 'snprintf' output between 6 and 15 bytes into a destination of size 7
     snprintf(pagenum, sizeof(pagenum), "- %d -", page);  t.DrawText(0.9, 0.02, pagenum);
     ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
L1Trigger/CSCTriggerPrimitives/test/CSCTriggerPrimitivesReader.cc:2696:6: error: '%d' directive output may be truncated writing between 1 and 10 bytes into a region of size 5 [-Werror=format-truncation=]
 void CSCTriggerPrimitivesReader::drawCompHistos() {
      ^~~~~~~~~~~~~~~~~~~~~~~~~~
L1Trigger/CSCTriggerPrimitives/test/CSCTriggerPrimitivesReader.cc:2696:6: note: directive argument in the range [1, 2147483647]
L1Trigger/CSCTriggerPrimitives/test/CSCTriggerPrimitivesReader.cc:2934:13: note: 'snprintf' output between 6 and 15 bytes into a destination of size 7
     snprintf(pagenum, sizeof(pagenum), "- %d -", page);  t.DrawText(0.9, 0.02, pagenum);
     ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
L1Trigger/CSCTriggerPrimitives/test/CSCTriggerPrimitivesReader.cc:2696:6: error: '%d' directive output may be truncated writing between 1 and 10 bytes into a region of size 5 [-Werror=format-truncation=]
 void CSCTriggerPrimitivesReader::drawCompHistos() {
      ^~~~~~~~~~~~~~~~~~~~~~~~~~
L1Trigger/CSCTriggerPrimitives/test/CSCTriggerPrimitivesReader.cc:2696:6: note: directive argument in the range [1, 2147483647]
L1Trigger/CSCTriggerPrimitives/test/CSCTriggerPrimitivesReader.cc:2985:13: note: 'snprintf' output between 6 and 15 bytes into a destination of size 7
     snprintf(pagenum, sizeof(pagenum), "- %d -", page);  t.DrawText(0.9, 0.02, pagenum);
     ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

@smuzaffar
Copy link
Contributor Author

please test

@cmsbuild
Copy link
Contributor

The code-checks are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/PR-21082/1715

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 30, 2017

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/24054/console Started: 2017/10/30 17:12

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @smuzaffar (Malik Shahzad Muzaffar) for master.

It involves the following packages:

L1Trigger/CSCTriggerPrimitives

@cmsbuild, @rekovic, @mulhearn can you please review it and eventually sign? Thanks.
@valuev, @ptcox, @kreczko, @Martin-Grunewald this is something you requested to watch as well.
@davidlange6, @slava77 you are the release manager for this.

cms-bot commands are listed here

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

Comparison job queued.

@cmsbuild
Copy link
Contributor

Comparison is ready
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-21082/24054/summary.html

Comparison Summary:

  • No significant changes to the logs found
  • Reco comparison results: 0 differences found in the comparisons
  • DQMHistoTests: Total files compared: 26
  • DQMHistoTests: Total histograms compared: 2838442
  • DQMHistoTests: Total failures: 107
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 2838164
  • DQMHistoTests: Total skipped: 171
  • DQMHistoTests: Total Missing objects: 0
  • Checked 107 log files, 10 edm output root files, 26 DQM output files

@davidlange6
Copy link
Contributor

davidlange6 commented Oct 30, 2017 via email

@cmsbuild cmsbuild merged commit f5c70ba into cms-sw:master Oct 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants