You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit dc9fc2e
Browse filesBrowse the repository at this point in the historyBrowse files
if (buffSize < nextDynOffs + sectorDataSizeBytes) {
185
-
throwstd::runtime_error(fmt::format("attempt to copy {} bytes of data for spline{} of sector{} to {}, overflowing the buffer of size {}", sectorDataSizeBytes, is, sector, nextDynOffs, buffSize));
throwstd::runtime_error(fmt::format("attempt to copy {} bytes of data for spline{} to {}, overflowing the buffer of size {}", sectorDataSizeBytes, is, nextDynOffs, buffSize));
191
174
}
175
+
constchar* dataOr = origCorr.mCorrectionData[is];
176
+
std::memcpy(data, dataOr, dataSize);
177
+
nextDynOffs += dataSize;
192
178
}
193
-
podMap.mTotalSize = alignOffset(nextDynOffs);
179
+
nextDynOffs = alignOffset(nextDynOffs);
180
+
podMap.mTotalSize = nextDynOffs;
194
181
if (buffSize != podMap.mTotalSize) {
195
182
throwstd::runtime_error(fmt::format("Estimated buffer size {} differs from filled one {}", buffSize, podMap.mTotalSize));
0 commit comments