Skip to content

Commit

Permalink
Merge pull request #437 from volz-io/aglv
Browse files Browse the repository at this point in the history
NULL overlay avoid crash
  • Loading branch information
fvpolpeta committed Nov 27, 2018
2 parents f6972b7 + be845c0 commit 80948c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Horos/Sources/DCMPix.m
Expand Up @@ -6689,7 +6689,7 @@ - (BOOL)loadDICOMDCMFramework
{
for( int x = 0; x < oColumns[i]; x++)
{
if( oData[i][ y * oColumns[i] + x])
if( oData[i] && oData[i][ y * oColumns[i] + x])
{
if( (x + oOrigin[i][ 0]) >= 0 && (x + oOrigin[i][ 0]) < width &&
(y + oOrigin[i][ 1]) >= 0 && (y + oOrigin[i][ 1]) < height)
Expand Down

0 comments on commit 80948c9

Please sign in to comment.