[PATCH 1/2] erofs-utils: lib: oci: fix a corner-case in `ocierofs_parse_ref()`
Gao Xiang
hsiangkao at linux.alibaba.com
Mon Dec 1 12:41:58 AEDT 2025
Hi Chengyu,
On 2025/11/30 18:42, Yifan Zhao wrote:
> Currently, `ocierofs_parse_ref()` fails to correctly parse OCI
> reference strings of the form "localhost:5000/myapp:latest", as it
> assumes a valid registry name must contain '.', which is not the case.
>
> Let's also treat `ref_str` with a colon before slash (i.e., containing a
> port number) as valid registry names.
>
> This patch also adds unit tests for `ocierofs_parse_ref()`.
>
> This patch also removes repeated codes in `ocierofs_parse_ref()`.
>
> Signed-off-by: Yifan Zhao <zhaoyifan28 at huawei.com>
Could you take a look at this series too?
Thanks,
Gao Xiang
More information about the Linux-erofs
mailing list