SearcharxivSearch

arXiv subjects

Yunfei Ke

Publications and source records attributed to Yunfei Ke.

2 recordsLinked to original sources

ARQ: Agentic CodeQL Query Refinement for C/C++ Vulnerability Detection

Static analyzers have been widely adopted for vulnerability detection in C/C++ programs. Query-based static analyzers (e.g., CodeQL) encode vulnerable code patterns in detection queries and match them against source code. However, existing queries still suffer from false positives (FPs, incorrectly flagging benign code as vulnerable) and false negatives (FNs, missing real vulnerabilities). We present ARQ, an agentic framework that automatically refines C/C++ CodeQL queries using execution-grounded evidence from synthesized C/C++ programs. Our key insight is that a synthesized program exposes a query's weakness whenever its execution disagrees with the query's verdict. If the program is genuinely vulnerable but the query stays silent, the query has an FN weakness; if the program is safe but the query fires anyway, it has an FP weakness. ARQ then runs an LLM-based refinement loop that repairs the query using these disagreements as ground truth. Unlike previous query refining methods, ARQ requires no labeled datasets, no commit history, and no vulnerability-specific templates. We demonstrate the effectiveness of ARQ by refining 12 official CodeQL queries using three commercial LLMs (GPT-5.4, Claude-Sonnet-4.6, and Gemini-3.5-flash). We compare both ARQ-refined and original CodeQL queries on the Juliet v1.3 and FormAI v2 datasets and show that ARQ-refined queries detect substantially more true positives, by up to 119.8\%, with a Precision of at least 98.0\% throughout. ARQ successfully fixed three unresolved GitHub issues raised in the official CodeQL query repository that had remained open for as long as \textit{27 months}. The refined queries also exposed two previously undiscovered bugs in the real-world libraries libpng and zlib.

cs.CR

Thickness and temperature dependent damping in La$_{0.67}$Sr$_{0.33}$MnO$_{3}$ epitaxial films

The damping of La0.67Sr0.33MnO3 (LSMO) epitaxial films as a function of thickness at different temperatures was studied. The competition between two scattering types (\r{ho}-like and σ-like) with entirely distinct thickness and temperature dependencies resulted in complicated damping behavior. The behavior of σ-like damping in LSMO films is consistent with the behavior in magnetic metal films. However, because \r{ho}-like damping is sensitive to the fine electron structure near the Fermi surface, the distortion of the oxygen octahedra controlled by the film thickness is an important factor in controlling the damping. Our study demonstrates that the complexity of damping in LSMO epitaxial films is a consequence of strong-correlation effects, which are characteristic of complex transition-metal oxides.

cond-mat.mtrl-sci