Skip to content

Commit

Permalink
Merge pull request hpcc-systems#19295 from jakesmith/HPCC-32985-fix-f…
Browse files Browse the repository at this point in the history
…ilecopy-coverity-issue

HPCC-32985 Fix theoretical overflow spotted by coverity

Reviewed-by: Gavin Halliday <[email protected]>
Merged-by: Gavin Halliday <[email protected]>
  • Loading branch information
ghalliday authored Nov 15, 2024
2 parents c5c4882 + f7eeb0f commit cc06db9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dali/ft/filecopy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1610,7 +1610,7 @@ void FileSprayer::commonUpSlaves()
bool commonByIp = !isContainerized();

offset_t totalSourceFileSize = 0;
offset_t threshold = 0x8000 * numSlaves;
offset_t threshold = (offset_t)0x8000 * numSlaves;
ForEachItemIn(i, sources)
{
const FilePartInfo & cur = sources.item(i);
Expand Down

0 comments on commit cc06db9

Please sign in to comment.