mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
If iucvtty_read_data() receives message data and reads less than MSG_DATA_OFFSET, out-of-bound reads will happen. Correct and improve the receiving path by always reading the entire message header. Also improve the "residual" message data handling by replacing and processing every message now as chunk. Acked-by: Steffen Eiden <seiden@linux.ibm.com> Signed-off-by: Hendrik Brueckner <brueckner@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>