| 64fe8020 | 28-Jan-2026 |
Ed Tanous <etanous@nvidia.com> |
Do not allow data beyond the trailer
There is nothing in the multipart spec[1] that states that a parser should allow any bytes after a multipart payload.
Several unit tests have a \r\n after their
Do not allow data beyond the trailer
There is nothing in the multipart spec[1] that states that a parser should allow any bytes after a multipart payload.
Several unit tests have a \r\n after their boundary condition that previously the parser just ignored. Testing shows this is fairly normal, so handle both cases still, but if any other characters show up, fail the parse.
Unit test is also simplified to be more clear.
Tested: Unit test coverage
[1] https://datatracker.ietf.org/doc/html/rfc7578#section-4.1
Change-Id: I16643c61867708886cc87c236447ec1c19bf934f Signed-off-by: Ed Tanous <etanous@nvidia.com>
show more ...
|
| b7f3a82b | 05-Jun-2024 |
Ed Tanous <ed@tanous.net> |
Break out random ID methods
The method of creating a random ID from an openssl random generator of a particular length is something that is generally useful, and something we can write unit tests fo
Break out random ID methods
The method of creating a random ID from an openssl random generator of a particular length is something that is generally useful, and something we can write unit tests for. Add it.
Tested: Redfish service validator login flows work correctly in redfish service validator.
Change-Id: Ic3b58d33f1421f3eb39e2d57585958f87f6fb8ea Signed-off-by: Ed Tanous <ed@tanous.net>
show more ...
|