fix(rtc): Prevent core dump if \r used in rt file 69/269/1
authorE. Scott Daniels <daniels@research.att.com>
Thu, 6 Jun 2019 12:10:26 +0000 (12:10 +0000)
committerE. Scott Daniels <daniels@research.att.com>
Thu, 6 Jun 2019 12:10:26 +0000 (12:10 +0000)
commitb7a31bd94da349e9c49f6dd7a5bcded74877a8ae
tree3768058af1aac7632b6861bf8a9c4fab28ef753a
parent68d09fa5028e47e763c44c30647da31e77eda64a
fix(rtc): Prevent core dump if \r used in rt file

Some operating systems, and/or filesystems, insist on using \r
as record termination (newline) indication rather than the
standard \n.  RMr was dependent on only finding \n as record
termination when parsing the route table entries, however as
it may be out of the user control to generate a static file with
the proper termination this change allows \r to be in the static
file.

Signed-off-by: E. Scott Daniels <daniels@research.att.com>
Change-Id: Ic18d5828f5a4b6855492b03718d105b57406431e
CMakeLists.txt
src/rmr/common/src/rt_generic_static.c
test/sr_nano_static_test.c