Fix a bug where a faulty DBC file could crash the DBC editor
This commit is contained in:
+2
-1
@@ -373,8 +373,9 @@ void DBCSignalEditor::fillSignalForm(DBC_SIGNAL *sig)
|
||||
int byt = startBit / 8;
|
||||
bitpattern[byt] |= 1 << (startBit % 8);
|
||||
size--;
|
||||
if ((startBit % 8) == 0) startBit += 15;
|
||||
if ((startBit % 8) == 0) startBit += 15;
|
||||
else startBit--;
|
||||
if (startBit > 63) startBit = 63;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user