[google/syzkaller] 0c5a8d: pkg/aflow: fix schema unmarshaling for primitive s...

1 view
Skip to first unread message

Aleksandr Nogikh

unread,
May 8, 2026, 11:07:58 AMMay 8
to syzk...@googlegroups.com
Branch: refs/heads/gh-readonly-queue/master/pr-7226-04e3cfe80d8d1595bcb750e55868b0ba3c416767
Home: https://github.com/google/syzkaller
Commit: 0c5a8d8f3deaa340c244d6d79ffd42930f92eb25
https://github.com/google/syzkaller/commit/0c5a8d8f3deaa340c244d6d79ffd42930f92eb25
Author: Aleksandr Nogikh <nog...@google.com>
Date: 2026-05-08 (Fri, 08 May 2026)

Changed paths:
M pkg/aflow/schema.go
M pkg/aflow/schema_test.go

Log Message:
-----------
pkg/aflow: fix schema unmarshaling for primitive slices

The custom reflection-based unmarshaler used in the aflow framework implicitly
assumed that all arrays passed from LLM responses were slices of structs. It
failed when processing arguments that were arrays of primitive types (like []string
for MessageRegexps).

This commit updates the unmarshaler to recursively process all slice elements by
delegating to setField, which already handles primitives, structs, and custom
JSON unmarshalers. It also corrects the type name formatting in the error messages
by using String() instead of Name(), so that slice types correctly display their
type signature instead of an empty string.



To unsubscribe from these emails, change your notification settings at https://github.com/google/syzkaller/settings/notifications

Aleksandr Nogikh

unread,
May 8, 2026, 11:19:55 AMMay 8
to syzk...@googlegroups.com
Branch: refs/heads/master
Reply all
Reply to author
Forward
0 new messages