Skip to content

Commit

Permalink
rosbag/record: fix signed int overflow (#1741)
Browse files Browse the repository at this point in the history
  • Loading branch information
cwecht authored and dirk-thomas committed Aug 4, 2020
1 parent b4e70c1 commit 4d6fbcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/rosbag/src/record.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ rosbag::RecorderOptions parseOptions(int argc, char** argv) {
ROS_WARN("Use of \"--split <MAX_SIZE>\" has been deprecated. Please use --split --size <MAX_SIZE> or --split --duration <MAX_DURATION>");
if (S < 0)
throw ros::Exception("Split size must be 0 or positive");
opts.max_size = 1048576 * S;
opts.max_size = 1048576 * static_cast<uint64_t>(S);
}
}
if(vm.count("max-splits"))
Expand Down

0 comments on commit 4d6fbcb

Please sign in to comment.