Bug 265685 - exp-run request: libc: expose a primitive version of b64_pton()
Summary: exp-run request: libc: expose a primitive version of b64_pton()
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: Piotr Pawel Stefaniak
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-08-07 08:58 UTC by Piotr Pawel Stefaniak
Modified: 2022-08-12 19:38 UTC (History)
1 user (show)

See Also:
antoine: exp-run+


Attachments
Patch implementing the change. (6.33 KB, patch)
2022-08-07 08:58 UTC, Piotr Pawel Stefaniak
no flags Details | Diff
Rebased patch. (6.31 KB, patch)
2022-08-07 20:54 UTC, Piotr Pawel Stefaniak
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Piotr Pawel Stefaniak freebsd_committer freebsd_triage 2022-08-07 08:58:28 UTC
Created attachment 235738 [details]
Patch implementing the change.

b64_pton_partial() takes a pointer to pointer and will update it while decoding.
Then the caller will be able to copy the correctly decoded part, even if decoding another part yielded an error and aborted the process.
Comment 1 Antoine Brodin freebsd_committer freebsd_triage 2022-08-07 20:24:50 UTC
The patch fails to apply

error: patch failed: include/Makefile:9
error: include/Makefile: patch does not apply
Comment 2 Piotr Pawel Stefaniak freebsd_committer freebsd_triage 2022-08-07 20:54:52 UTC
Created attachment 235756 [details]
Rebased patch.
Comment 3 Antoine Brodin freebsd_committer freebsd_triage 2022-08-12 19:38:51 UTC
exp-run looks fine