Merge upstream/master into master

Resolve llama-context.cpp: keep compute lock on the new llama_batch_ext
encode/decode, and reset both gf_res_prev slots in the shared compute path.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
xripandClaude Opus 5.5 committed 2026-09-25 11:33:07 +03:00
commit 74facb828e
57 files changed
+2947 -983

No files matched your search

+1 -1
View File
@@ -6,7 +6,7 @@ cd $SCRIPT_DIR
set -eu
WORKERS="${PYTEST_WORKERS:-auto}"
WORKERS="${PYTEST_WORKERS:-4}"
if [ $# -lt 1 ]
then
@@ -41,6 +41,8 @@ export const SVG = {
* so an author <style> stays scoped to that root and can not reach the page.
*/
SANITIZE_CONFIG: {
ADD_ATTR: ['calcMode', 'from', 'to'],
ADD_TAGS: ['animate', 'set', 'use'],
FORBID_TAGS: ['foreignObject', 'script'],
USE_PROFILES: { svg: true, svgFilters: true }
},
+11
View File
@@ -1,6 +1,17 @@
import { SVG } from '$lib/constants';
import DOMPurify from 'dompurify';
/**
* animate and set can retarget href or xlink:href to a javascript: uri through
* to, from, by or values, none of which DOMPurify checks as a uri. Dropping
* attributeName in that case leaves the animation inert.
*/
DOMPurify.addHook('uponSanitizeAttribute', (_node, data) => {
if (data.attrName === 'attributename' && /href$/i.test(data.attrValue.trim())) {
data.keepAttr = false;
}
});
/**
* Sanitizes a raw svg string for safe inline rendering.
* Returns the cleaned svg markup, or an empty string when the input is not a