This project is read-only.
19

Closed

Bug in Libraries/Core/Webserver43/Responder.cs prevents the webserver from parsing browser headers

description

There's a bug in the function ReceivedListToByteArray (https://gadgeteer.codeplex.com/SourceControl/latest#Main/GadgeteerCore/Libraries/Core/WebServer43/Responder.cs ) on line 543 which prevents the input array from being copied correctly and thus prevents the Webserver from responding:
        protected byte[] ReceivedListToByteArray(ArrayList receivedList, int size)
        {
                [...]
                while (j < data.Length)
                {
                    result[lastIndex + i] = data[j];
                    j++;

                }
                [...]
        }
which should be
        protected byte[] ReceivedListToByteArray(ArrayList receivedList, int size)
        {
                [...]
                while (j < data.Length)
                {
                    result[lastIndex + j] = data[j];
                    j++;

                }
                [...]
        }
instead.
Closed Nov 13, 2015 at 4:30 PM by JanKuceraMSFT
Fixed in 2.44.1100.

comments

ethicalhacker wrote May 17, 2015 at 3:25 AM

See the following link for more discussion on this issue.

For anyone coming behind us before this actually gets fixed, refer to here [Reply #2] for information on how to get your newly fixed and compiled DLL where it needs to be so that things will work.

wrote Sep 28, 2015 at 5:11 PM

wrote Nov 13, 2015 at 4:30 PM