[core,capabilities] skip stream bytes read in substream

This commit is contained in:
akallabeth 2024-07-25 10:50:51 +02:00
parent 2f5570cd67
commit 86f2b1e26a
No known key found for this signature in database
GPG Key ID: A49454A3FC909FD5

View File

@ -3307,7 +3307,9 @@ static BOOL rdp_read_codec_ts_rfx_clnt_caps_container(wStream* s, rdpSettings* s
wStream* sub = Stream_StaticConstInit(&sbuffer, Stream_Pointer(s), rfxPropsLength - 4ull);
WINPR_ASSERT(sub);
if (!Stream_CheckAndLogRequiredLength(TAG, s, 8))
Stream_Seek(s, rfxPropsLength - 4ull);
if (!Stream_CheckAndLogRequiredLength(TAG, sub, 8))
return FALSE;
Stream_Read_UINT32(sub, captureFlags); /* captureFlags (4 bytes) */