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

ECAL - GPU unpacker buffer overflow fix #38088

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 4 additions & 1 deletion EventFilter/EcalRawToDigi/plugins/DeclsForKernels.h
Expand Up @@ -17,7 +17,10 @@ namespace ecal {

constexpr auto empty_event_size = EMPTYEVENTSIZE;
constexpr uint32_t nfeds_max = 54;
constexpr uint32_t nbytes_per_fed_max = 10 * 1024;
constexpr uint32_t nbytes_per_fed_max = 41616; // max FED size in full readout mode
// DCC header and trailer: 10 words (64bit),
// TCC block: 18 words, SR block 6 words,
// (25 channels per tower * 3 words + 1 header word) * 68 towers

struct InputDataCPU {
cms::cuda::host::unique_ptr<unsigned char[]> data;
Expand Down