J
Philip Costigan:
> I have not had much time to look at modbus.rtu and I know there is a
> strange bug causing a seg fault. I'm about to head off on sunday for a
> few weeks overseas.
When the baud rate is not specified, io/modbus/rtu/tags.c:100 sets the baud variable to NULL. Then tags.c:113 tries to strncpy(3) it somewhere.
What should the default baud rate be?
BTW, is there any reason to pass the baud rate around as a string? Probably better to get it as an integer from the config and pass around that...
Jiri
--
Jiri Baum <[email protected]>
You know you've been hacking too long when ...
... reading a book you notice the word "From" at the beginning of a line.
_______________________________________________
LinuxPLC mailing list
[email protected]
http://linuxplc.org/mailman/listinfo/linuxplc
> I have not had much time to look at modbus.rtu and I know there is a
> strange bug causing a seg fault. I'm about to head off on sunday for a
> few weeks overseas.
When the baud rate is not specified, io/modbus/rtu/tags.c:100 sets the baud variable to NULL. Then tags.c:113 tries to strncpy(3) it somewhere.
What should the default baud rate be?
BTW, is there any reason to pass the baud rate around as a string? Probably better to get it as an integer from the config and pass around that...
Jiri
--
Jiri Baum <[email protected]>
You know you've been hacking too long when ...
... reading a book you notice the word "From" at the beginning of a line.
_______________________________________________
LinuxPLC mailing list
[email protected]
http://linuxplc.org/mailman/listinfo/linuxplc