[PATCH] torture/ntlm_auth: read more than 2047 bytes as a line

jim jim.brown at rsmas.miami.edu
Mon Jan 23 23:28:25 UTC 2017


Why not just search 'more' for the newline so you don't keep searching 
the older pieces in the growing string?

On 1/23/2017 4:57 PM, Bob Campbell wrote:
> Hi again,
>
> It seems like the best way to see issues with your own patch is to post
> it to a mailing list. Here's an updated version of that patch which
> won't get stuck in a loop if it doesn't find a newline...
>
> Thanks,
> Bob
>
>
> On 24/01/17 10:01, Bob Campbell wrote:
>> Hi,
>>
>> This test would fail on our cloud due to assuming that a line was always
>> 2047 bytes or less in length. This patch just repeatedly reads 2047
>> bytes until it's found a newline character (or until it's reached the end).
>>
>> Please review and push if appropriate.
>>
>> Thanks,
>> Bob
>>




More information about the samba-technical mailing list