comparison OrthancFramework/Sources/DicomParsing/ParsedDicomFile.cpp @ 4211:afad57ac30ef

enforcing parameter "enforceAligned" in PamReader
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 21 Sep 2020 18:10:31 +0200
parents 4d42408da117
children 0034f855c023
comparison
equal deleted inserted replaced
4210:7b14ddf795c5 4211:afad57ac30ef
1255 } 1255 }
1256 #endif 1256 #endif
1257 1257
1258 case MimeType_Pam: 1258 case MimeType_Pam:
1259 { 1259 {
1260 PamReader reader; 1260 // "true" means "enforce memory alignment": This is slower,
1261 // but possibly avoids crash related to non-aligned memory access
1262 PamReader reader(true);
1261 reader.ReadFromMemory(content); 1263 reader.ReadFromMemory(content);
1262 EmbedImage(reader); 1264 EmbedImage(reader);
1263 break; 1265 break;
1264 } 1266 }
1265 1267