Skip to content

Conversation

@FlorentRevest
Copy link
Collaborator

When preparing a codesearch index, I encountered errors which I narrowed down to lines like the following in the json output of codesearch:

"type": "void (void attribute((btf_type_tag("user")))*, const void *, size_t, size_t)",

After this change, the line gets formatted like this:

"type": "void (void attribute((btf_type_tag("user")))*, const void *, size_t, size_t)",

This fixes the errors I encountered

@dvyukov
Copy link
Collaborator

dvyukov commented Jan 21, 2026

Test please. pkg/codesearch/testdata has everything to test this end-to-end.
You would need to run:

make codesearch && go test ./pkg/codesearch -bin $SYZKALLER/bin/syz-codesearch -update

to update all query files.

dvyukov
dvyukov previously approved these changes Jan 21, 2026
a-nogikh
a-nogikh previously approved these changes Jan 23, 2026
When preparing a codesearch index, I encountered errors which I narrowed
down to lines like the following in the json output of codesearch:

  "type": "void (void  __attribute__((btf_type_tag("user")))*, const void *, size_t, size_t)",

After this change, the line gets formatted like this:

  "type": "void (void  __attribute__((btf_type_tag(\"user\")))*, const void *, size_t, size_t)",

This fixes the errors I encountered
@dvyukov dvyukov added this pull request to the merge queue Jan 25, 2026
Merged via the queue into google:master with commit 02bac03 Jan 25, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants