mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
iucvterm: Improve received message type and length checking
The iucvtty_read_msg() now receives the entire message header. Perform message header checks for specific message types where the payload length is clearly defined. Also this needs to be done prior starting the message chunk processing because the message datalen field will be adjusted based on the read chunks. Reviewed-by: Jan Höppner <hoeppner@linux.ibm.com> Signed-off-by: Hendrik Brueckner <brueckner@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
committed by
Jan Höppner
parent
56a55901c1
commit
29db9032b3
@@ -21,6 +21,9 @@
|
||||
/* Message buffer: message header + 4096 bytes of data */
|
||||
#define MSG_BUFFER_SIZE (MSG_DATA_OFFSET + (4096))
|
||||
|
||||
/* Message data sizes */
|
||||
#define MAX_TERM_SIZE 256
|
||||
|
||||
/* Error macros */
|
||||
#define print_error(s) program_error(PRG_COMPONENT, (s))
|
||||
#define iucvtty_error(m) \
|
||||
|
||||
Reference in New Issue
Block a user