From: Thiago Franco de Moraes Subject: Removed eval from dicom.py (#820) Origin: upstream, https://github.com/invesalius/invesalius3/commit/020cd6056c30105a870cfea99939282b6ec5640b --- a/invesalius/reader/dicom.py +++ b/invesalius/reader/dicom.py @@ -443,7 +443,7 @@ except (KeyError): return "" if data: - return [eval(value) for value in data.split("\\")] + return [float(value) for value in data.split("\\")] return "" def GetImageLocation(self): @@ -456,7 +456,7 @@ """ data = self.data_image[str(0x020)][str(0x1041)] if data: - return eval(data) + return float(data) return "" def GetImageOffset(self):