Replace all instances of strcpy() with strncpy() to prevent buffer
overflow vulnerabilities. The strcpy() function does not perform
bounds checking, which can lead to security issues when copying
strings of unknown or excessive length.
Problem reported and fix suggested by Jaeyeong Lee.
Change-Id: Ide896dbae3bdaf9001287b4d3e387efd355e73bd
The string buffer in SDO2string could overflow for large octet
strings. Fix by limiting output to the size of the output string.
Change-Id: Ic45056918570d8320a02f70a8795b6b863a590ff
Simplify the API by adding overlap and byte alignment modes to the
context. SOEM can then call the correct functions internally. As a
consequence the following functions are removed from the public API:
ecx_config_overlap_map_group
ecx_config_map_group_aligned
ecx_send_overlap_processdata_group
ecx_send_overlap_processdata
Change-Id: I0404c4fbaa6be68be4c584af0cc9d62e780c7aaa