Skip to content

Instantly share code, notes, and snippets.

@sirdarckcat
Created July 20, 2023 04:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sirdarckcat/b6a4d8aa256b7d85fe2ca31980b4eb87 to your computer and use it in GitHub Desktop.
Save sirdarckcat/b6a4d8aa256b7d85fe2ca31980b4eb87 to your computer and use it in GitHub Desktop.
select * from (
select
syzkaller,
fixed_commit,
fixes_commit,
fixes_tags.tags `fixes_tags`,
fixed_tags.tags `fixed_tags`
from (
select
syzkaller,
fixed_commit,
(
select
`commit`
from
tags
where
`commit` >= fixes_short and
`commit`<fixes_short||'g'
) fixes_commit
from (
select
SUBSTR(fixes_commit, 0, INSTR(fixes_commit, " ")) fixes_short,
fixed_commit,
syzkaller
from (
select
'https://syzkaller.appspot.com//bug?id='||syzkaller syzkaller,
`commit` fixed_commit,
(
select
fixes
from
fixes
where
`commit`=syzkaller.`commit`
) fixes_commit,
'id='||syzkaller
from
syzkaller
)
)
where
length(fixes_short)>0
)
join
tags fixes_tags
on
fixes_tags.`commit`=fixes_commit
join
tags fixed_tags
on
fixed_tags.`commit`=fixed_commit
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment