bd58a08686
The homedir is statically owned, so don't free it!
...
CI / ubuntu-latest-html-tests (push) Has been cancelled
CI / alpine-mbedtls-3_6_0 (push) Has been cancelled
CI / ubuntu-latest-no-tls (push) Has been cancelled
CI / ubuntu-latest-mbedtls2 (push) Has been cancelled
CI / ubuntu-latest-openssl-3 (push) Has been cancelled
CI / ubuntu-latest-with-old-std (push) Has been cancelled
CI / ubuntu-20-04-openssl-1-1 (push) Has been cancelled
CI / macOS-13-openssl-1-1 (push) Has been cancelled
CI / macOS-13-openssl-3 (push) Has been cancelled
CI / freebsd-14-openssl-3 (push) Has been cancelled
CI / windows-mbedtls (push) Has been cancelled
This fixes at least one regression.
2025-10-01 04:27:17 -04:00
8356c017e1
Isolate a few more string leakage cases.
2025-09-27 18:18:36 -04:00
1bf12c858f
String alloc shouldn't convert to std::string
.
...
CI / ubuntu-latest-html-tests (push) Has been cancelled
CI / alpine-mbedtls-3_6_0 (push) Has been cancelled
CI / ubuntu-latest-no-tls (push) Has been cancelled
CI / ubuntu-latest-mbedtls2 (push) Has been cancelled
CI / ubuntu-latest-openssl-3 (push) Has been cancelled
CI / ubuntu-latest-with-old-std (push) Has been cancelled
CI / ubuntu-20-04-openssl-1-1 (push) Has been cancelled
CI / macOS-13-openssl-1-1 (push) Has been cancelled
CI / macOS-13-openssl-3 (push) Has been cancelled
CI / freebsd-14-openssl-3 (push) Has been cancelled
CI / windows-mbedtls (push) Has been cancelled
As I work through making code use more C++ RAII and such, most
of the work is handling strings, especially temporaries. As member
variables which manage string memory get turned into `std::string`,
some use cases might wind up leaking memory. (One was found in
this change.)
By using a non-convertible-to-string result, such accidents should
be avoided.
2025-09-08 13:24:56 -04:00
412adaa492
Rename getline function to unsafe, to make it greppable.
...
Now i can trim them one-by-one.
2025-08-23 02:20:05 -04:00
f283391b46
Get some of the last remaining C files into C++
...
They still need to be fixed up, but they now build with C++.
2025-08-23 02:09:47 -04:00
d1f5756670
Use standard bool types.
...
I'm using `stdbool.h` for the few remaining C files. That will
have to change, soon.
2025-08-21 13:59:12 -04:00
27ae7d91c1
Begin converting URL struct into modern C++ class
2025-04-12 22:20:34 -04:00
396b5fc2a6
This is a major lift into C++.
...
Much of the code is now building in C++, and I'm using C++23.
A spot test seems to work. Now I can start to debride all the
painful memory management quirks...
2025-03-01 03:03:25 -05:00