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 the length of the string buffer to accommodate the "new format" of the HCAL DetId #23471

Merged
merged 1 commit into from Jun 6, 2018

Conversation

fwyzard
Copy link
Contributor

@fwyzard fwyzard commented Jun 4, 2018

Reported by GCC 7 -Werror=format-overflow:

src/DQM/HcalCommon/src/HashFunctions.cc: In function 'std::__cxx11::string hcaldqm::hashfunctions::name_HFPMiphi(const HcalDetId&)':
src/DQM/HcalCommon/src/HashFunctions.cc:251:15: error: '%d' directive writing between 1 and 4 bytes into a region of size 3 [-Werror=format-overflow=]
   std::string name_HFPMiphi(HcalDetId const& did)
               ^~~~~~~~~~~~~
src/DQM/HcalCommon/src/HashFunctions.cc:251:15: note: directive argument in the range [0, 1023]
src/DQM/HcalCommon/src/HashFunctions.cc:254:11: note: 'sprintf' output between 9 and 12 bytes into a destination of size 10
    sprintf(name, "HF%siphi%d", did.ieta()>0 ? "P" : "M", did.iphi());
    ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

@fwyzard
Copy link
Contributor Author

fwyzard commented Jun 4, 2018

@cmsbuild, please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Jun 4, 2018

The code-checks are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

cmsbuild commented Jun 4, 2018

@cmsbuild
Copy link
Contributor

cmsbuild commented Jun 4, 2018

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/28452/console Started: 2018/06/04 23:16

@cmsbuild
Copy link
Contributor

cmsbuild commented Jun 4, 2018

A new Pull Request was created by @fwyzard (Andrea Bocci) for master.

It involves the following packages:

DQM/HcalCommon

@vazzolini, @kmaeshima, @dmitrijus, @cmsbuild, @jfernan2, @vanbesien can you please review it and eventually sign? Thanks.
@DryRun, @deguio this is something you requested to watch as well.
@davidlange6, @slava77, @fabiocos you are the release manager for this.

cms-bot commands are listed here

@cmsbuild
Copy link
Contributor

cmsbuild commented Jun 4, 2018

@cmsbuild
Copy link
Contributor

cmsbuild commented Jun 4, 2018

Comparison job queued.

@cmsbuild
Copy link
Contributor

cmsbuild commented Jun 5, 2018

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

Comparison Summary:

  • No significant changes to the logs found
  • Reco comparison results: 4 differences found in the comparisons
  • DQMHistoTests: Total files compared: 31
  • DQMHistoTests: Total histograms compared: 2902471
  • DQMHistoTests: Total failures: 2
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 2902279
  • DQMHistoTests: Total skipped: 190
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 30 files compared)
  • Checked 128 log files, 14 edm output root files, 31 DQM output files

@dmitrijus
Copy link
Contributor

+1

@cmsbuild
Copy link
Contributor

cmsbuild commented Jun 5, 2018

This pull request is fully signed and it will be integrated in one of the next master IBs (tests are also fine). This pull request will now be reviewed by the release team before it's merged. @davidlange6, @slava77, @smuzaffar, @fabiocos (and backports should be raised in the release meeting by the corresponding L2)

@fabiocos
Copy link
Contributor

fabiocos commented Jun 6, 2018

+1

@cmsbuild cmsbuild merged commit b8aa734 into cms-sw:master Jun 6, 2018
@fwyzard fwyzard deleted the fix_HcalHashFunctions branch July 5, 2018 07:35
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

4 participants