Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 297760 | Differences between
and this patch

Collapse All | Expand All

(-)devil-1.7.8/src-IL/src/il_dicom.c~ (-1 / +3 lines)
Lines 427-435 ILboolean GetUID(ILubyte *UID) Link Here
427
		return IL_FALSE;
427
		return IL_FALSE;
428
428
429
	ValLen = GetLittleUShort();
429
	ValLen = GetLittleUShort();
430
	if (ValLen > 64)
431
		return IL_FALSE;
430
	if (iread(UID, ValLen, 1) != 1)
432
	if (iread(UID, ValLen, 1) != 1)
431
		return IL_FALSE;
433
		return IL_FALSE;
432
	UID[64] = 0;  // Just to make sure that our string is terminated.
434
	UID[ValLen] = 0;  // Just to make sure that our string is terminated.
433
435
434
	return IL_TRUE;
436
	return IL_TRUE;
435
}
437
}

Return to bug 297760