Index | Thread | Search

From:
Theo Buehler <tb@theobuehler.org>
Subject:
Re: UPDATE security/vaultwarden-1.32.7
To:
bket@openbsd.org, ports@openbsd.org
Date:
Sat, 28 Dec 2024 12:22:34 +0100

Download raw body.

Thread
> Index: security/vaultwarden/patches/patch-src_api_icons_rs
> ===================================================================
> RCS file: security/vaultwarden/patches/patch-src_api_icons_rs
> diff -N security/vaultwarden/patches/patch-src_api_icons_rs
> --- /dev/null	1 Jan 1970 00:00:00 -0000
> +++ security/vaultwarden/patches/patch-src_api_icons_rs	28 Dec 2024 11:14:11 -0000
> @@ -0,0 +1,13 @@
> +Index: src/api/icons.rs
> +--- src/api/icons.rs.orig
> ++++ src/api/icons.rs
> +@@ -270,7 +270,8 @@ fn get_favicons_node(dom: Tokenizer<StringReader<'_>, 
> + 
> +     let mut base_url = url.clone();
> +     let mut icon_tags: Vec<Tag> = Vec::new();
> +-    for Ok(token) in dom {
> ++    for maybe_token in dom {
> ++        let token = maybe_token.unwrap();

	while let Ok(token) in dom {

should avoid a possible panic you get with unwrap().

> +         let tag_name: &[u8] = &token.tag.name;
> +         match tag_name {
> +             TAG_LINK => {
> 
> 
> -- 
> wbr, Kirill
>