tripled_64 is crashing when setting user defined bittiming
martin-vitek opened this issue · comments
Martin Vítek commented
tripled_64
is crashing when setting user defined bittiming.
sudo ./tripled_64 ttyACM0 -s0x09:0x0A:0x21 -c10:6:1:1:10:6:1:1:0:0:2 -ncan0:can1:canfd2
Neoprávněný přístup do paměti (SIGSEGV)
With debugging prints:
sudo ./tripled_64 ttyACM0 -s0x09:0x0A:0x21 -c10:6:1:1:10:6:1:1:0:0:0 -ncan0:can1:canfd2
str=10, num=10
str=6, num=6
str=1, num=1
str=1, num=1
Neoprávněný přístup do paměti (SIGSEGV)
First problem is, that user_speed
should have 11 items, not only 10:
Line 91 in 4aa706b
Second problem is with tmp
, which should also have 11 items:
Line 107 in 4aa706b
Both are used in this loop:
Lines 166 to 167 in 4aa706b
Canlab commented
Lots of parameters.... I've not tested used user-defined settings, so I'll look into it.
Canlab commented
Closing