Gitweb links:
...log
http://git.netsurf-browser.org/netsurf.git/shortlog/04e9e75b272cc52eda57f207e5b1839f87cb3541
...commit
http://git.netsurf-browser.org/netsurf.git/commit/04e9e75b272cc52eda57f207e5b1839f87cb3541
...tree
http://git.netsurf-browser.org/netsurf.git/tree/04e9e75b272cc52eda57f207e5b1839f87cb3541
The branch, master has been updated
via 04e9e75b272cc52eda57f207e5b1839f87cb3541 (commit)
from dbe63210cfc3405f434b2e10697f33da37e7c19d (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commitdiff
http://git.netsurf-browser.org/netsurf.git/commit/?id=04e9e75b272cc52eda57f207e5b1839f87cb3541
commit 04e9e75b272cc52eda57f207e5b1839f87cb3541
Author: Daniel Silverstone <[email protected]>
Commit: Daniel Silverstone <[email protected]>
idna: Do not overcopy utf8 buffer as though it were ucs4
Signed-off-by: Daniel Silverstone <[email protected]>
diff --git a/utils/idna.c b/utils/idna.c
index f006316..628ef1f 100644
--- a/utils/idna.c
+++ b/utils/idna.c
@@ -802,7 +802,7 @@ idna_decode(const char *ace_host, size_t ace_len, char
**host, size_t *host_len)
return error;
}
- memcpy(fqdn_p, output, output_len * 4);
+ memcpy(fqdn_p, output, output_len);
free(output);
fqdn_p += output_len;
fqdn_len += output_len;
-----------------------------------------------------------------------
Summary of changes:
utils/idna.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/utils/idna.c b/utils/idna.c
index f006316..628ef1f 100644
--- a/utils/idna.c
+++ b/utils/idna.c
@@ -802,7 +802,7 @@ idna_decode(const char *ace_host, size_t ace_len, char
**host, size_t *host_len)
return error;
}
- memcpy(fqdn_p, output, output_len * 4);
+ memcpy(fqdn_p, output, output_len);
free(output);
fqdn_p += output_len;
fqdn_len += output_len;
--
NetSurf Browser
_______________________________________________
netsurf-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]