aboutsummaryrefslogtreecommitdiffstats
path: root/test/punycode_test.c
Commit message (Collapse)AuthorAgeFilesLines
* test: Invert bad TEST() condition callsTomas Mraz2026-06-151-1/+1
| | | | | | | | | | | | | | False result of a TEST_xxx() call should always indicate erroneous condition. Fix such calls. Also fix some calls which treated TEST_xxx() result as non-boolean. Reviewed-by: Paul Dale <[email protected]> Reviewed-by: Richard Levitte <[email protected]> Reviewed-by: Norbert Pocs <[email protected]> MergeDate: Mon Jun 15 07:38:52 2026 (Merged from https://github.com/openssl/openssl/pull/31457)
* 4.0-POST-CLANG-FORMAT-WEBKIT4.0-POST-CLANG-FORMAT-WEBKITBob Beck2025-12-091-125/+84
| | | | | | | Reviewed-by: Saša Nedvědický <[email protected]> Reviewed-by: Neil Horman <[email protected]> Reviewed-by: Nikola Pajkovsky <[email protected]> (Merged from https://github.com/openssl/openssl/pull/29242)
* Copyright year updatesMatt Caswell2023-09-071-1/+1
| | | | | Reviewed-by: Richard Levitte <[email protected]> Release: yes
* Add more punycode tests and remove ossl_a2ucompare()slontis2023-02-081-0/+37
| | | | | | | | | The unused and untested internal function ossl_a2ucompare() has been removed. Reviewed-by: Paul Dale <[email protected]> Reviewed-by: Dmitry Belyavskiy <[email protected]> (Merged from https://github.com/openssl/openssl/pull/20177)
* punycode: update to use WPACKET instead of using custom range checkingPauli2022-11-101-16/+53
| | | | | | | | | | | | | | Add test for `.' overflows, remove the output size argument from ossl_a2ulabel() since it was never used and greatly complicated the code. Convert ossl_a2ulabel() to use WPACKET for building the output string. Update the documentation to match the new definition of ossl_a2ulabel(). x509: let punycode handle the '\0' string termination. Saves a memset(3) and some size fiddling. Also update to deal with the modified parameters. Reviewed-by: Tomas Mraz <[email protected]> Reviewed-by: Dmitry Belyavskiy <[email protected]> (Merged from https://github.com/openssl/openssl/pull/19591)
* Coverity 1516624: Fix overrun memory access.Pauli2022-11-031-1/+1
| | | | | | | | Not possible to hit but good to address. Reviewed-by: Hugo Landau <[email protected]> Reviewed-by: Tomas Mraz <[email protected]> (Merged from https://github.com/openssl/openssl/pull/19576)
* punycode: add unit testsPauli2022-11-011-0/+220
These tests verify basic functionality and specifically test for CVE-2022-3602. Reviewed-by: Matt Caswell <[email protected]> Reviewed-by: Tomas Mraz <[email protected]> (cherry picked from commit f0f530216bf93e9cdc9c2c9e3c095229d216da15)