id
stringlengths
19
22
source_name
stringclasses
2 values
source_type
stringclasses
1 value
source_split
stringclasses
2 values
original_id
unknown
language
stringclasses
2 values
framework
stringclasses
1 value
task
stringclasses
2 values
cwe_id
stringclasses
15 values
owasp_category
stringclasses
6 values
severity
stringclasses
3 values
is_vulnerable
bool
2 classes
vulnerability_name
stringclasses
15 values
input_code
stringlengths
26
142k
fixed_code
stringclasses
1 value
explanation
stringclasses
2 values
secure_pattern
stringclasses
1 value
tags
listlengths
4
4
metadata
unknown
codexglue_train_008339
CodeXGLUE Defect Detection
public_dataset
train
10380
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static void exynos4210_pwm_write(void *opaque, target_phys_addr_t offset, uint64_t value, unsigned size) { Exynos4210PWMState *s = (Exynos4210PWMState *)opaque; int index; uint32_t new_val; int i; switch (offset) { case TCFG0: case TCFG1: index = (offset - TCFG0) >> 2;...
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": false, "project": "qemu", "commit_id": "a8170e5e97ad17ca169c64ba87ae2f53850dab4c", "normalized_at": "2026-06-20T05:17:39.134036Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_012975
CodeXGLUE Defect Detection
public_dataset
train
16150
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
const char *small_strptime(const char *p, const char *fmt, struct tm *dt) { int c, val; for(;;) { c = *fmt++; if (c == '\0') { return p; } else if (c == '%') { c = *fmt++; switch(c) { case 'H': ...
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": false, "project": "FFmpeg", "commit_id": "add41decd94b2d3581a3715ba10f27168b8cdb1b", "normalized_at": "2026-06-20T05:17:39.253342Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_000714
CodeXGLUE Defect Detection
public_dataset
train
879
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static void qmp_output_type_str(Visitor *v, const char *name, char **obj, Error **errp) { QmpOutputVisitor *qov = to_qov(v); if (*obj) { qmp_output_add(qov, name, qstring_from_str(*obj)); } else { qmp_output_add(qov, name, qstring_from_str("")); } ...
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": false, "project": "qemu", "commit_id": "b3db211f3c80bb996a704d665fe275619f728bd4", "normalized_at": "2026-06-20T05:17:38.935202Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_010099
CodeXGLUE Defect Detection
public_dataset
train
12589
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static int restore_sigcontext(CPUAlphaState *env, struct target_sigcontext *sc) { uint64_t fpcr; int i, err = 0; __get_user(env->pc, &sc->sc_pc); for (i = 0; i < 31; ++i) { __get_user(env->ir[i], &sc->sc_regs[i]); } for (i = 0; i < 31; ++i) { ...
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": true, "project": "qemu", "commit_id": "016d2e1dfa21b64a524d3629fdd317d4c25bc3b8", "normalized_at": "2026-06-20T05:17:39.179980Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
owasp_python_000081
OWASP Benchmark Python
public_dataset
processed
81
python
generic
security_review
CWE-502
A08: Software and Data Integrity Failures
high
false
Deserialization of Untrusted Data
''' OWASP Benchmark for Python v0.1 This file is part of the Open Web Application Security Project (OWASP) Benchmark Project. For details, please see https://owasp.org/www-project-benchmark. The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms of the GNU General Public Licens...
This example was normalized from OWASP Benchmark Python. It is intended for security review and vulnerability detection. A secure repair is not included in this source-specific normalized record.
[ "owasp", "benchmark-python", "python", "cwe-502" ]
{ "raw_path": "testcode/BenchmarkTest00081.py", "label_source": "data/raw/owasp_benchmark_python/expectedresults-0.1.csv", "normalized_at": "2026-06-20T05:21:00.684234Z", "name_fixed_at": "2026-06-20T05:22:49.826149Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_015152
CodeXGLUE Defect Detection
public_dataset
train
18935
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
void monitor_init(CharDriverState *chr, int flags) { static int is_first_init = 1; Monitor *mon; if (is_first_init) { key_timer = qemu_new_timer(vm_clock, release_keys, NULL); is_first_init = 0; } mon = qemu_mallocz(sizeof(*mon)); mon->chr = chr; mon->flags = ...
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": false, "project": "qemu", "commit_id": "72cf2d4f0e181d0d3a3122e04129c58a95da713e", "normalized_at": "2026-06-20T05:17:39.308067Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_018311
CodeXGLUE Defect Detection
public_dataset
train
22868
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
void qemu_peer_set_vnet_hdr_len(NetClientState *nc, int len) { if (!nc->peer || !nc->peer->info->set_vnet_hdr_len) { return; } nc->peer->info->set_vnet_hdr_len(nc->peer, len); }
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": false, "project": "qemu", "commit_id": "d6085e3ace20bc9b0fa625d8d79b22668710e217", "normalized_at": "2026-06-20T05:17:39.396256Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_001892
CodeXGLUE Defect Detection
public_dataset
train
2305
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static void e1000_reset(void *opaque) { E1000State *d = opaque; qemu_del_timer(d->autoneg_timer); memset(d->phy_reg, 0, sizeof d->phy_reg); memmove(d->phy_reg, phy_reg_init, sizeof phy_reg_init); memset(d->mac_reg, 0, sizeof d->mac_reg); memmove(d->mac_reg, mac_reg_init, sizeof mac_re...
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": true, "project": "qemu", "commit_id": "372254c6e5c078fb13b236bb648d2b9b2b0c70f1", "normalized_at": "2026-06-20T05:17:38.967878Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_018479
CodeXGLUE Defect Detection
public_dataset
train
23077
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
size_t v9fs_marshal(struct iovec *in_sg, int in_num, size_t offset, int bswap, const char *fmt, ...) { int i; va_list ap; size_t old_offset = offset; va_start(ap, fmt); for (i = 0; fmt[i]; i++) { switch (fmt[i]) { case 'b': { uint8_t val = ...
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": false, "project": "qemu", "commit_id": "ddca7f86ac022289840e0200fd4050b2b58e9176", "normalized_at": "2026-06-20T05:17:39.400699Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_014969
CodeXGLUE Defect Detection
public_dataset
train
18712
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
int vnc_display_open(DisplayState *ds, const char *display) { VncDisplay *vs = ds ? (VncDisplay *)ds->opaque : vnc_display; const char *options; int password = 0; int reverse = 0; int to_port = 0; #ifdef CONFIG_VNC_TLS int tls = 0, x509 = 0; #endif if (!vnc_display) retu...
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": true, "project": "qemu", "commit_id": "2f9606b3736c3be4dbd606c46525c7b770ced119", "normalized_at": "2026-06-20T05:17:39.303636Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_013613
CodeXGLUE Defect Detection
public_dataset
train
16972
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static int av_thread_message_queue_send_locked(AVThreadMessageQueue *mq, void *msg, unsigned flags) { while (!mq->err_send && av_fifo_space(mq->fifo) < mq->elsize) { if ((flags & AV_THREAD_MESSAGE_NONBLOCK)) ...
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": true, "project": "FFmpeg", "commit_id": "bd5c860fdbc33d19d2ff0f6d1f06de07c17560dd", "normalized_at": "2026-06-20T05:17:39.268246Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_016819
CodeXGLUE Defect Detection
public_dataset
train
21018
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
yuv2plane1_16_c_template(const int32_t *src, uint16_t *dest, int dstW, int big_endian, int output_bits) { int i; int shift = 19 - output_bits; for (i = 0; i < dstW; i++) { int val = src[i] + (1 << (shift - 1)); output_pixel(&dest[i], val, 0, uint); } }...
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": true, "project": "FFmpeg", "commit_id": "b1a4b735f9b03840803413cb725216d15d5213a7", "normalized_at": "2026-06-20T05:17:39.352589Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_004324
CodeXGLUE Defect Detection
public_dataset
train
5347
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static int send_sub_rect_nojpeg(VncState *vs, int x, int y, int w, int h, int bg, int fg, int colors, VncPalette *palette) { int ret; if (colors == 0) { if (tight_detect_smooth_image(vs, w, h)) { ret = send_gradient_rect(vs, x, y, w, h); ...
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": true, "project": "qemu", "commit_id": "d167f9bc06a577d6c85b8ed6991c1efe175aae7d", "normalized_at": "2026-06-20T05:17:39.033972Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_014859
CodeXGLUE Defect Detection
public_dataset
train
18574
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static void simple_string(void) { int i; struct { const char *encoded; const char *decoded; } test_cases[] = { { "\"hello world\"", "hello world" }, { "\"the quick brown fox jumped over the fence\"", "the quick brown fox jumped over the fence" }, {...
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": true, "project": "qemu", "commit_id": "aec4b054ea36c53c8b887da99f20010133b84378", "normalized_at": "2026-06-20T05:17:39.300431Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_001824
CodeXGLUE Defect Detection
public_dataset
train
2225
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
int find_itlb_entry(CPUState * env, target_ulong address, int use_asid, int update) { int e, n; e = find_tlb_entry(env, address, env->itlb, ITLB_SIZE, use_asid); if (e == MMU_DTLB_MULTIPLE) e = MMU_ITLB_MULTIPLE; else if (e == MMU_DTLB_MISS && update) { e = find_tlb_entry(env, address,...
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": true, "project": "qemu", "commit_id": "06afe2c8840ec39c3b23db0eb830a5f49244b947", "normalized_at": "2026-06-20T05:17:38.966324Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_014598
CodeXGLUE Defect Detection
public_dataset
train
18233
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static void disas_sparc_insn(DisasContext * dc) { unsigned int insn, opc, rs1, rs2, rd; insn = ldl_code(dc->pc); opc = GET_FIELD(insn, 0, 1); rd = GET_FIELD(insn, 2, 6); switch (opc) { case 0: /* branches/sethi */ { unsigned int xop = GET_FIEL...
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": false, "project": "qemu", "commit_id": "8f577d3d29996ad5c60ac6419881557183806d8b", "normalized_at": "2026-06-20T05:17:39.293022Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_016724
CodeXGLUE Defect Detection
public_dataset
train
20892
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
int avpriv_adx_decode_header(AVCodecContext *avctx, const uint8_t *buf, int bufsize, int *header_size, int *coeff) { int offset, cutoff; if (bufsize < 24) return AVERROR_INVALIDDATA; if (AV_RB16(buf) != 0x8000) return AVERROR_INVALIDDATA; offset =...
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": false, "project": "FFmpeg", "commit_id": "5569146d48f06564e8fa393424782cceed510916", "normalized_at": "2026-06-20T05:17:39.350103Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_002980
CodeXGLUE Defect Detection
public_dataset
train
3649
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static void qmp_cleanup(void *datap) { QmpSerializeData *d = datap; visit_free(qmp_output_get_visitor(d->qov)); visit_free(d->qiv); g_free(d); }
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": false, "project": "qemu", "commit_id": "3b098d56979d2f7fd707c5be85555d114353a28d", "normalized_at": "2026-06-20T05:17:38.999851Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_016018
CodeXGLUE Defect Detection
public_dataset
train
20013
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
av_cold void ff_wmv2_common_init(Wmv2Context *w) { MpegEncContext *const s = &w->s; ff_blockdsp_init(&s->bdsp, s->avctx); ff_wmv2dsp_init(&w->wdsp); s->idsp.perm_type = w->wdsp.idct_perm; ff_init_scantable_permutation(s->idsp.idct_permutation, w->wdsp.idct_...
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": false, "project": "FFmpeg", "commit_id": "dcc39ee10e82833ce24aa57926c00ffeb1948198", "normalized_at": "2026-06-20T05:17:39.331882Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_019109
CodeXGLUE Defect Detection
public_dataset
train
23873
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static int targa_decode_rle(AVCodecContext *avctx, TargaContext *s, const uint8_t *src, int src_size, uint8_t *dst, int w, int h, int stride, int bpp) { int i, x, y; int depth = (bpp + 1) >> 3; int type, count; int diff; const uint8_t *src_end = src + src_size; diff = stride - w * depth...
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": false, "project": "FFmpeg", "commit_id": "eb3f81e4ef73bb8d7e2c75ff0e8cb43de1c7dac5", "normalized_at": "2026-06-20T05:17:39.417422Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_006731
CodeXGLUE Defect Detection
public_dataset
train
8387
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
void qbus_create_inplace(BusState *bus, const char *typename, DeviceState *parent, const char *name) { object_initialize(bus, typename); qbus_realize(bus, parent, name); }
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": false, "project": "qemu", "commit_id": "39355c3826f5d9a2eb1ce3dc9b4cdd68893769d6", "normalized_at": "2026-06-20T05:17:39.095153Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
owasp_python_000904
OWASP Benchmark Python
public_dataset
processed
904
python
generic
security_review
CWE-502
A08: Software and Data Integrity Failures
high
false
Deserialization of Untrusted Data
''' OWASP Benchmark for Python v0.1 This file is part of the Open Web Application Security Project (OWASP) Benchmark Project. For details, please see https://owasp.org/www-project-benchmark. The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms of the GNU General Public Licens...
This example was normalized from OWASP Benchmark Python. It is intended for security review and vulnerability detection. A secure repair is not included in this source-specific normalized record.
[ "owasp", "benchmark-python", "python", "cwe-502" ]
{ "raw_path": "testcode/BenchmarkTest00904.py", "label_source": "data/raw/owasp_benchmark_python/expectedresults-0.1.csv", "normalized_at": "2026-06-20T05:21:00.720508Z", "name_fixed_at": "2026-06-20T05:22:49.839935Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_003809
CodeXGLUE Defect Detection
public_dataset
train
4691
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static int connect_to_ssh(BDRVSSHState *s, QDict *options, int ssh_flags, int creat_mode, Error **errp) { int r, ret; const char *host, *user, *path, *host_key_check; int port; if (!qdict_haskey(options, "host")) { ret = -EINVAL; error_setg(errp, "No h...
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": true, "project": "qemu", "commit_id": "8a6a80896d6af03b8ee0c17cdf37219eca2588a7", "normalized_at": "2026-06-20T05:17:39.021421Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_014479
CodeXGLUE Defect Detection
public_dataset
train
18079
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static void unassigned_mem_writeb(void *opaque, target_phys_addr_t addr, uint32_t val) { #ifdef DEBUG_UNASSIGNED printf("Unassigned mem write " TARGET_FMT_plx " = 0x%x\n", addr, val); #endif #if defined(TARGET_ALPHA) || defined(TARGET_SPARC) || defined(TARGET_MICROBLAZE) do_unassigned_access(addr, 1, 0, 0...
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": true, "project": "qemu", "commit_id": "b14ef7c9ab41ea824c3ccadb070ad95567cca84e", "normalized_at": "2026-06-20T05:17:39.290267Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_017051
CodeXGLUE Defect Detection
public_dataset
train
21304
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static int smjpeg_read_packet(AVFormatContext *s, AVPacket *pkt) { SMJPEGContext *sc = s->priv_data; uint32_t dtype, ret, size, timestamp; int64_t pos; if (s->pb->eof_reached) return AVERROR_EOF; pos = avio_tell(s->pb); dtype = avio_rl32(s->pb); switch (dtype) { cas...
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": false, "project": "FFmpeg", "commit_id": "366484fff1720977b8591e3a90fbef9f4885e53c", "normalized_at": "2026-06-20T05:17:39.358970Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_010752
CodeXGLUE Defect Detection
public_dataset
train
13406
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static void i440fx_pcihost_get_pci_hole_end(Object *obj, Visitor *v, const char *name, void *opaque, Error **errp) { I440FXState *s = I440FX_PCI_HOST_BRIDGE(obj); uint32_t value = s->pci_hole.end; visit_type_uint...
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": false, "project": "qemu", "commit_id": "a0efbf16604770b9d805bcf210ec29942321134f", "normalized_at": "2026-06-20T05:17:39.196454Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_005392
CodeXGLUE Defect Detection
public_dataset
train
6702
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static int dnxhd_decode_header(DNXHDContext *ctx, const uint8_t *buf, int buf_size, int first_field) { static const uint8_t header_prefix[] = { 0x00, 0x00, 0x02, 0x80, 0x01 }; int i, cid; if (buf_size < 0x280) return -1; if (memcmp(buf, header_prefix, 5)) { av_log(ctx->avctx, ...
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": true, "project": "FFmpeg", "commit_id": "4a2da83a787b24c4027aa963d9db9b453e91f413", "normalized_at": "2026-06-20T05:17:39.061157Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_004911
CodeXGLUE Defect Detection
public_dataset
train
6096
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static int megasas_dcmd_ld_get_list(MegasasState *s, MegasasCmd *cmd) { struct mfi_ld_list info; size_t dcmd_size = sizeof(info), resid; uint32_t num_ld_disks = 0, max_ld_disks = s->fw_luns; uint64_t ld_size; BusChild *kid; memset(&info, 0, dcmd_size); if (cmd->iov_size < dcmd_size...
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": false, "project": "qemu", "commit_id": "4be746345f13e99e468c60acbd3a355e8183e3ce", "normalized_at": "2026-06-20T05:17:39.048485Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_017586
CodeXGLUE Defect Detection
public_dataset
train
21965
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
void palette_destroy(VncPalette *palette) { if (palette == NULL) { qemu_free(palette); } }
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": true, "project": "qemu", "commit_id": "d6e58090fed20e30e6966007bc4df0c04324d9e7", "normalized_at": "2026-06-20T05:17:39.375467Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_018767
CodeXGLUE Defect Detection
public_dataset
train
23451
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static uint16_t reloc_pc14_val(tcg_insn_unit *pc, tcg_insn_unit *target) { ptrdiff_t disp = tcg_ptr_byte_diff(target, pc); assert(disp == (int16_t) disp); return disp & 0xfffc; }
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": false, "project": "qemu", "commit_id": "eabb7b91b36b202b4dac2df2d59d698e3aff197a", "normalized_at": "2026-06-20T05:17:39.407748Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_006625
CodeXGLUE Defect Detection
public_dataset
train
8264
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static void gen_sraiq(DisasContext *ctx) { int sh = SH(ctx->opcode); int l1 = gen_new_label(); TCGv t0 = tcg_temp_new(); TCGv t1 = tcg_temp_new(); tcg_gen_shri_tl(t0, cpu_gpr[rS(ctx->opcode)], sh); tcg_gen_shli_tl(t1, cpu_gpr[rS(ctx->opcode)], 32 - sh); tcg_gen_or_tl(t0, t0, t1); ...
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": false, "project": "qemu", "commit_id": "42a268c241183877192c376d03bd9b6d527407c7", "normalized_at": "2026-06-20T05:17:39.092544Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_016564
CodeXGLUE Defect Detection
public_dataset
train
20700
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static int coroutine_fn bdrv_co_do_readv(BlockDriverState *bs, int64_t sector_num, int nb_sectors, QEMUIOVector *qiov) { BlockDriver *drv = bs->drv; BdrvTrackedRequest req; int ret; if (!drv) { return -ENOMEDIUM; if (bdrv_check_request(bs, sector_num, nb_sectors)) { return -EIO; ...
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": true, "project": "qemu", "commit_id": "f4658285f99473367dbbc34ce6970ec4637c2388", "normalized_at": "2026-06-20T05:17:39.345893Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_017946
CodeXGLUE Defect Detection
public_dataset
train
22420
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static void s390_init(ram_addr_t ram_size, const char *boot_device, const char *kernel_filename, const char *kernel_cmdline, const char *initrd_filename, const char *cpu_model) { CPUState *env = NULL...
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": false, "project": "qemu", "commit_id": "f8b6cc0070aab8b75bd082582c829be1353f395f", "normalized_at": "2026-06-20T05:17:39.386704Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_002024
CodeXGLUE Defect Detection
public_dataset
train
2465
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static int open_input_file(OptionsContext *o, const char *filename) { InputFile *f; AVFormatContext *ic; AVInputFormat *file_iformat = NULL; int err, i, ret; int64_t timestamp; uint8_t buf[128]; AVDictionary **opts; AVDictionary *unused_opts = NULL; AVDictionaryEntry *e = N...
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": false, "project": "FFmpeg", "commit_id": "56ee3f9de7b9f6090d599a27d33a392890a2f7b8", "normalized_at": "2026-06-20T05:17:38.971201Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_003677
CodeXGLUE Defect Detection
public_dataset
train
4512
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
unsigned avutil_version(void) { av_assert0(AV_PIX_FMT_VDA_VLD == 81); //check if the pix fmt enum has not had anything inserted or removed by mistake av_assert0(AV_SAMPLE_FMT_DBLP == 9); av_assert0(AVMEDIA_TYPE_ATTACHMENT == 4); av_assert0(AV_PICTURE_TYPE_BI == 7); av_assert0(LIBAVUTIL_VERSION...
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": false, "project": "FFmpeg", "commit_id": "e701cd96c2d5dc034e7615967d208db3d953e111", "normalized_at": "2026-06-20T05:17:39.018009Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_018487
CodeXGLUE Defect Detection
public_dataset
train
23085
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static uint32_t nam_readl (void *opaque, uint32_t addr) { PCIAC97LinkState *d = opaque; AC97LinkState *s = &d->ac97; dolog ("U nam readl %#x\n", addr); s->cas = 0; return ~0U; }
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": false, "project": "qemu", "commit_id": "10ee2aaa417d8d8978cdb2bbed55ebb152df5f6b", "normalized_at": "2026-06-20T05:17:39.400874Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_002560
CodeXGLUE Defect Detection
public_dataset
train
3116
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static void decode_mode(AVCodecContext *ctx) { static const uint8_t left_ctx[N_BS_SIZES] = { 0x0, 0x8, 0x0, 0x8, 0xc, 0x8, 0xc, 0xe, 0xc, 0xe, 0xf, 0xe, 0xf }; static const uint8_t above_ctx[N_BS_SIZES] = { 0x0, 0x0, 0x8, 0x8, 0x8, 0xc, 0xc, 0xc, 0xe, 0xe, 0xe, 0xf, 0xf }; st...
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": true, "project": "FFmpeg", "commit_id": "0c67864a37a5a6dee19341da6e6cfa369c52d1db", "normalized_at": "2026-06-20T05:17:38.987415Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_011855
CodeXGLUE Defect Detection
public_dataset
train
14751
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
void qdev_prop_allow_set_link_before_realize(Object *obj, const char *name, Object *val, Error **errp) { DeviceState *dev = DEVICE(obj); if (dev->realized) { error_setg(errp, "Attempt to set link property '%s' on device '%s' " "(typ...
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": true, "project": "qemu", "commit_id": "8f5d58ef2c92d7b82d9a6eeefd7c8854a183ba4a", "normalized_at": "2026-06-20T05:17:39.225406Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_017308
CodeXGLUE Defect Detection
public_dataset
train
21625
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static int v9fs_do_mknod(V9fsState *s, V9fsString *path, mode_t mode, dev_t dev) { return s->ops->mknod(&s->ctx, path->data, mode, dev); }
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": false, "project": "qemu", "commit_id": "1c29331248d82e5a9caaf7974756a9d8bd5cd1e5", "normalized_at": "2026-06-20T05:17:39.366603Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_014640
CodeXGLUE Defect Detection
public_dataset
train
18287
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static void *ff_realloc_static(void *ptr, unsigned int size) { int i; if(!ptr) return av_mallocz_static(size); /* Look for the old ptr */ for(i = 0; i < last_static; i++) { if(array_static[i] == ptr) { array_static[i] = av_realloc(array_static[i], size); re...
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": true, "project": "FFmpeg", "commit_id": "b9c8388710a06544812739eedc0a40d3451491dc", "normalized_at": "2026-06-20T05:17:39.294527Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_017220
CodeXGLUE Defect Detection
public_dataset
train
21516
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static void bcm2835_property_mbox_push(BCM2835PropertyState *s, uint32_t value) { uint32_t tag; uint32_t bufsize; uint32_t tot_len; size_t resplen; uint32_t tmp; value &= ~0xf; s->addr = value; tot_len = ldl_phys(&s->dma_as, value); /* @(addr + 4) : Buffer response ...
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": false, "project": "qemu", "commit_id": "f0afa73164778570083504a185d7498884c68d65", "normalized_at": "2026-06-20T05:17:39.364275Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_002683
CodeXGLUE Defect Detection
public_dataset
train
3276
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static int ahci_start_transfer(IDEDMA *dma) { AHCIDevice *ad = DO_UPCAST(AHCIDevice, dma, dma); IDEState *s = &ad->port.ifs[0]; uint32_t size = (uint32_t)(s->data_end - s->data_ptr); /* write == ram -> device */ uint32_t opts = le32_to_cpu(ad->cur_cmd->opts); int is_write = opts & AHCI_CM...
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": true, "project": "qemu", "commit_id": "61f52e06f0a21bab782f98ef3ea789aa6d0aa046", "normalized_at": "2026-06-20T05:17:38.991133Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_019524
CodeXGLUE Defect Detection
public_dataset
train
24397
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static int movie_get_frame(AVFilterLink *outlink) { MovieContext *movie = outlink->src->priv; AVPacket pkt; int ret, frame_decoded; AVStream *st = movie->format_ctx->streams[movie->stream_index]; if (movie->is_done == 1) return 0; while ((ret = av_read_frame(movie->format_ctx...
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": false, "project": "FFmpeg", "commit_id": "d19d52d4a11547cc70bcbc3a2f8b83ccd24bb951", "normalized_at": "2026-06-20T05:17:39.429837Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
owasp_python_000352
OWASP Benchmark Python
public_dataset
processed
352
python
generic
security_review
CWE-22
A01: Broken Access Control
medium
false
Path Traversal
''' OWASP Benchmark for Python v0.1 This file is part of the Open Web Application Security Project (OWASP) Benchmark Project. For details, please see https://owasp.org/www-project-benchmark. The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms of the GNU General Public Licens...
This example was normalized from OWASP Benchmark Python. It is intended for security review and vulnerability detection. A secure repair is not included in this source-specific normalized record.
[ "owasp", "benchmark-python", "python", "cwe-22" ]
{ "raw_path": "testcode/BenchmarkTest00352.py", "label_source": "data/raw/owasp_benchmark_python/expectedresults-0.1.csv", "normalized_at": "2026-06-20T05:21:00.695920Z", "name_fixed_at": "2026-06-20T05:22:49.831315Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_008109
CodeXGLUE Defect Detection
public_dataset
train
10092
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
void vnc_hextile_set_pixel_conversion(VncState *vs, int generic) { if (!generic) { switch (vs->ds->surface->pf.bits_per_pixel) { case 8: vs->send_hextile_tile = send_hextile_tile_8; break; case 16: vs->send_hextile_tile = send_h...
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": false, "project": "qemu", "commit_id": "245f7b51c0ea04fb2224b1127430a096c91aee70", "normalized_at": "2026-06-20T05:17:39.128898Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_007157
CodeXGLUE Defect Detection
public_dataset
train
8892
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
read_f(int argc, char **argv) { struct timeval t1, t2; int Cflag = 0, pflag = 0, qflag = 0, vflag = 0; int Pflag = 0, sflag = 0, lflag = 0; int c, cnt; char *buf; int64_t offset; int count; /* Some compilers get confused and warn if this is not initialized. */ int total = 0; int patt...
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": true, "project": "qemu", "commit_id": "7d8abfcb50a33aed369bbd267852cf04009c49e9", "normalized_at": "2026-06-20T05:17:39.106771Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_021762
CodeXGLUE Defect Detection
public_dataset
train
27206
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
void OPPROTO op_srli_T1 (void) { T1 = T1 >> PARAM1; RETURN(); }
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": true, "project": "qemu", "commit_id": "d9bce9d99f4656ae0b0127f7472db9067b8f84ab", "normalized_at": "2026-06-20T05:17:39.491785Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_017614
CodeXGLUE Defect Detection
public_dataset
train
22000
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
yuv2422_2_c_template(SwsContext *c, const int16_t *buf[2], const int16_t *ubuf[2], const int16_t *vbuf[2], const int16_t *abuf[2], uint8_t *dest, int dstW, int yalpha, int uvalpha, int y, enum PixelFormat target) { const int16...
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": true, "project": "FFmpeg", "commit_id": "4860625236475da20d0da954017e8c7fe412dea2", "normalized_at": "2026-06-20T05:17:39.376072Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_015429
CodeXGLUE Defect Detection
public_dataset
train
19288
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static coroutine_fn int sd_co_writev(BlockDriverState *bs, int64_t sector_num, int nb_sectors, QEMUIOVector *qiov) { SheepdogAIOCB acb; int ret; int64_t offset = (sector_num + nb_sectors) * BDRV_SECTOR_SIZE; BDRVSheepdogState *s = bs->opaque; if (offset > s->inode.vd...
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": false, "project": "qemu", "commit_id": "acf6e5f0962c4be670d4a93ede77423512521876", "normalized_at": "2026-06-20T05:17:39.315417Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_017998
CodeXGLUE Defect Detection
public_dataset
train
22492
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static uint64_t coroutine_fn mirror_iteration(MirrorBlockJob *s) { BlockDriverState *source = s->common.bs; int nb_sectors, sectors_per_chunk, nb_chunks; int64_t end, sector_num, next_chunk, next_sector, hbitmap_next_sector; uint64_t delay_ns = 0; MirrorOp *op; s->sector_num = hbitmap_i...
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": true, "project": "qemu", "commit_id": "c4237dfa635900e4d1cdc6038d5efe3507f45f0c", "normalized_at": "2026-06-20T05:17:39.387895Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_013627
CodeXGLUE Defect Detection
public_dataset
train
16991
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static Suite *qstring_suite(void) { Suite *s; TCase *qstring_public_tcase; s = suite_create("QString test-suite"); qstring_public_tcase = tcase_create("Public Interface"); suite_add_tcase(s, qstring_public_tcase); tcase_add_test(qstring_public_tcase, qstring_from_str_test); tcase...
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": false, "project": "qemu", "commit_id": "0ac7cc2af500b948510f2481c22e84a57b0a2447", "normalized_at": "2026-06-20T05:17:39.268474Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_012243
CodeXGLUE Defect Detection
public_dataset
train
15250
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static int flac_decode_frame(AVCodecContext *avctx, void *data, int *data_size, const uint8_t *buf, int buf_size) { FLACContext *s = avctx->priv_data; int tmp = 0, i, j = 0, input_buf_size = 0; int16_t *samples_16 = data; int32_t *samples_32...
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": false, "project": "FFmpeg", "commit_id": "55a727383bab266b757b642aabaa2b066c14e7c7", "normalized_at": "2026-06-20T05:17:39.234216Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_019849
CodeXGLUE Defect Detection
public_dataset
train
24825
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static TranslationBlock *tb_find_slow(target_ulong pc, target_ulong cs_base, uint64_t flags) { TranslationBlock *tb, **ptb1; int code_gen_size; unsigned int h; target_ulong phys_pc, phys_page1, phys_page2, virt_page2; ...
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": true, "project": "qemu", "commit_id": "d07bde88a52bf293c3f8846cfd162e0a57e1557c", "normalized_at": "2026-06-20T05:17:39.438750Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_014909
CodeXGLUE Defect Detection
public_dataset
train
18641
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static int64_t find_best_filter(const DCAADPCMEncContext *s, const int32_t *in, int len) { const premultiplied_coeffs *precalc_data = s->private_data; int i, j, k = 0; int vq; int64_t err; int64_t min_err = 1ll << 62; int64_t corr[15]; for (i = 0; i <= DCA_ADPCM_COEFFS; i++) ...
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": true, "project": "FFmpeg", "commit_id": "dd4b7badb416a5c2688da7310a7fe80fe4e4f209", "normalized_at": "2026-06-20T05:17:39.302189Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_005020
CodeXGLUE Defect Detection
public_dataset
train
6236
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static void virt_machine_class_init(ObjectClass *oc, void *data) { MachineClass *mc = MACHINE_CLASS(oc); mc->init = machvirt_init; /* Start max_cpus at the maximum QEMU supports. We'll further restrict * it later in machvirt_init, where we have more information about the * configuration of...
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": false, "project": "qemu", "commit_id": "079019f2e319bd1279681b6c1d7dde785d09e69e", "normalized_at": "2026-06-20T05:17:39.051015Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_015670
CodeXGLUE Defect Detection
public_dataset
train
19582
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static unsigned int dec_movem_rm(DisasContext *dc) { TCGv tmp; TCGv addr; int i; DIS(fprintf (logfile, "movem $r%u, [$r%u%s\n", dc->op2, dc->op1, dc->postinc ? "+]" : "]")); cris_flush_cc_state(dc); tmp = tcg_temp_new(TCG_TYPE_TL); addr = tcg_temp_new(TCG_TYPE_TL); tcg_gen_movi_tl(tmp, 4)...
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": false, "project": "qemu", "commit_id": "a7812ae412311d7d47f8aa85656faadac9d64b56", "normalized_at": "2026-06-20T05:17:39.321550Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_004377
CodeXGLUE Defect Detection
public_dataset
train
5417
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
void do_mullwo (void) { int64_t res = (int64_t)Ts0 * (int64_t)Ts1; if (likely((int32_t)res == res)) { xer_ov = 0; } else { xer_ov = 1; xer_so = 1; } T0 = (int32_t)res; }
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": true, "project": "qemu", "commit_id": "d9bce9d99f4656ae0b0127f7472db9067b8f84ab", "normalized_at": "2026-06-20T05:17:39.035066Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_007181
CodeXGLUE Defect Detection
public_dataset
train
8921
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static uint64_t grlib_irqmp_read(void *opaque, target_phys_addr_t addr, unsigned size) { IRQMP *irqmp = opaque; IRQMPState *state; assert(irqmp != NULL); state = irqmp->state; assert(state != NULL); addr &= 0xff; /* global registers */ ...
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": false, "project": "qemu", "commit_id": "a8170e5e97ad17ca169c64ba87ae2f53850dab4c", "normalized_at": "2026-06-20T05:17:39.107317Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_007237
CodeXGLUE Defect Detection
public_dataset
train
8989
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static void onenand_reset(OneNANDState *s, int cold) { memset(&s->addr, 0, sizeof(s->addr)); s->command = 0; s->count = 1; s->bufaddr = 0; s->config[0] = 0x40c0; s->config[1] = 0x0000; onenand_intr_update(s); qemu_irq_raise(s->rdy); s->status = 0x0000; s->intstatus = c...
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": false, "project": "qemu", "commit_id": "4be746345f13e99e468c60acbd3a355e8183e3ce", "normalized_at": "2026-06-20T05:17:39.108415Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_020141
CodeXGLUE Defect Detection
public_dataset
train
25186
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
int inet_nonblocking_connect(const char *str, bool *in_progress, Error **errp) { QemuOpts *opts; int sock = -1; opts = qemu_opts_create(&dummy_opts, NULL, 0, NULL); if (inet_parse(opts, str) == 0) { sock = inet_connect_opts(opts, false, in_progress, errp); ...
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": true, "project": "qemu", "commit_id": "233aa5c2d1cf4655ffe335025a68cf5454f87dad", "normalized_at": "2026-06-20T05:17:39.445359Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_012044
CodeXGLUE Defect Detection
public_dataset
train
14996
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static int parse_psfile(AVFilterContext *ctx, const char *fname) { CurvesContext *curves = ctx->priv; uint8_t *buf; size_t size; int i, ret, av_unused(version), nb_curves; AVBPrint ptstr; static const int comp_ids[] = {3, 0, 1, 2}; av_bprint_init(&ptstr, 0, AV_BPRINT_SIZE_AUTOMATIC...
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": true, "project": "FFmpeg", "commit_id": "b2cfd1fde7a2643be9978ec8da58c184a5d9a140", "normalized_at": "2026-06-20T05:17:39.229516Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
owasp_python_001174
OWASP Benchmark Python
public_dataset
processed
1174
python
generic
security_review
CWE-502
A08: Software and Data Integrity Failures
high
false
Deserialization of Untrusted Data
''' OWASP Benchmark for Python v0.1 This file is part of the Open Web Application Security Project (OWASP) Benchmark Project. For details, please see https://owasp.org/www-project-benchmark. The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms of the GNU General Public Licens...
This example was normalized from OWASP Benchmark Python. It is intended for security review and vulnerability detection. A secure repair is not included in this source-specific normalized record.
[ "owasp", "benchmark-python", "python", "cwe-502" ]
{ "raw_path": "testcode/BenchmarkTest01174.py", "label_source": "data/raw/owasp_benchmark_python/expectedresults-0.1.csv", "normalized_at": "2026-06-20T05:21:00.733378Z", "name_fixed_at": "2026-06-20T05:22:49.842932Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
owasp_python_000780
OWASP Benchmark Python
public_dataset
processed
780
python
generic
security_review
CWE-330
A02: Cryptographic Failures
medium
false
Use of Insufficiently Random Values
''' OWASP Benchmark for Python v0.1 This file is part of the Open Web Application Security Project (OWASP) Benchmark Project. For details, please see https://owasp.org/www-project-benchmark. The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms of the GNU General Public Licens...
This example was normalized from OWASP Benchmark Python. It is intended for security review and vulnerability detection. A secure repair is not included in this source-specific normalized record.
[ "owasp", "benchmark-python", "python", "cwe-330" ]
{ "raw_path": "testcode/BenchmarkTest00780.py", "label_source": "data/raw/owasp_benchmark_python/expectedresults-0.1.csv", "normalized_at": "2026-06-20T05:21:00.714864Z", "name_fixed_at": "2026-06-20T05:22:49.838298Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_003848
CodeXGLUE Defect Detection
public_dataset
train
4739
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static void perf_yield(void) { unsigned int i, maxcycles; double duration; maxcycles = 100000000; i = maxcycles; Coroutine *coroutine = qemu_coroutine_create(yield_loop); g_test_timer_start(); while (i > 0) { qemu_coroutine_enter(coroutine, &i); } duration = g_...
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": true, "project": "qemu", "commit_id": "0b8b8753e4d94901627b3e86431230f2319215c4", "normalized_at": "2026-06-20T05:17:39.022226Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
owasp_python_000309
OWASP Benchmark Python
public_dataset
processed
309
python
generic
security_review
CWE-330
A02: Cryptographic Failures
medium
true
Use of Insufficiently Random Values
''' OWASP Benchmark for Python v0.1 This file is part of the Open Web Application Security Project (OWASP) Benchmark Project. For details, please see https://owasp.org/www-project-benchmark. The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms of the GNU General Public Licens...
This example was normalized from OWASP Benchmark Python. It is intended for security review and vulnerability detection. A secure repair is not included in this source-specific normalized record.
[ "owasp", "benchmark-python", "python", "cwe-330" ]
{ "raw_path": "testcode/BenchmarkTest00309.py", "label_source": "data/raw/owasp_benchmark_python/expectedresults-0.1.csv", "normalized_at": "2026-06-20T05:21:00.694105Z", "name_fixed_at": "2026-06-20T05:22:49.830567Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_010191
CodeXGLUE Defect Detection
public_dataset
train
12706
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
pvscsi_cleanup_msi(PVSCSIState *s) { PCIDevice *d = PCI_DEVICE(s); if (s->msi_used) { msi_uninit(d); } }
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": false, "project": "qemu", "commit_id": "269fe4c3ab0cf29329317eb868f8ec90ac761b41", "normalized_at": "2026-06-20T05:17:39.182223Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_016467
CodeXGLUE Defect Detection
public_dataset
train
20577
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
void decode_mb_coeffs(VP8Context *s, VP8ThreadData *td, VP56RangeCoder *c, VP8Macroblock *mb, uint8_t t_nnz[9], uint8_t l_nnz[9]) { int i, x, y, luma_start = 0, luma_ctx = 3; int nnz_pred, nnz, nnz_total = 0; int segment = mb->segment; int block_dc = 0; if (mb->mode !=...
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": true, "project": "FFmpeg", "commit_id": "ac4b32df71bd932838043a4838b86d11e169707f", "normalized_at": "2026-06-20T05:17:39.343413Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
owasp_python_000888
OWASP Benchmark Python
public_dataset
processed
888
python
generic
security_review
CWE-501
A01: Broken Access Control
medium
true
Trust Boundary Violation
''' OWASP Benchmark for Python v0.1 This file is part of the Open Web Application Security Project (OWASP) Benchmark Project. For details, please see https://owasp.org/www-project-benchmark. The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms of the GNU General Public Licens...
This example was normalized from OWASP Benchmark Python. It is intended for security review and vulnerability detection. A secure repair is not included in this source-specific normalized record.
[ "owasp", "benchmark-python", "python", "cwe-501" ]
{ "raw_path": "testcode/BenchmarkTest00888.py", "label_source": "data/raw/owasp_benchmark_python/expectedresults-0.1.csv", "normalized_at": "2026-06-20T05:21:00.719730Z", "name_fixed_at": "2026-06-20T05:22:49.839754Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_013285
CodeXGLUE Defect Detection
public_dataset
train
16553
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
int ioinst_handle_stsch(CPUS390XState *env, uint64_t reg1, uint32_t ipb) { int cssid, ssid, schid, m; SubchDev *sch; uint64_t addr; int cc; SCHIB *schib; hwaddr len = sizeof(*schib); if (ioinst_disassemble_sch_ident(reg1, &m, &cssid, &ssid, &schid)) { program_interrupt(env...
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": false, "project": "qemu", "commit_id": "71ed827abd57dc7947ce3316118d0e601e70fac9", "normalized_at": "2026-06-20T05:17:39.260675Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_005234
CodeXGLUE Defect Detection
public_dataset
train
6488
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static void handle_arg_cpu(const char *arg) { cpu_model = strdup(arg); if (cpu_model == NULL || strcmp(cpu_model, "?") == 0) { /* XXX: implement xxx_cpu_list for targets that still miss it */ #if defined(cpu_list_id) cpu_list_id(stdout, &fprintf, ""); #elif defined(cpu_list) cpu_...
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": true, "project": "qemu", "commit_id": "c8057f951d64de93bfd01569c0a725baa9f94372", "normalized_at": "2026-06-20T05:17:39.057339Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_010054
CodeXGLUE Defect Detection
public_dataset
train
12535
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static void qemu_chr_parse_mux(QemuOpts *opts, ChardevBackend *backend, Error **errp) { const char *chardev = qemu_opt_get(opts, "chardev"); ChardevMux *mux; if (chardev == NULL) { error_setg(errp, "chardev: mux: no chardev given"); return; } ...
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": false, "project": "qemu", "commit_id": "32bafa8fdd098d52fbf1102d5a5e48d29398c0aa", "normalized_at": "2026-06-20T05:17:39.178446Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_015251
CodeXGLUE Defect Detection
public_dataset
train
19060
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
int net_client_init(QemuOpts *opts, int is_netdev, Error **errp) { const char *name; const char *type; int i; type = qemu_opt_get(opts, "type"); if (!type) { error_set(errp, QERR_MISSING_PARAMETER, "type"); return -1; } if (is_netdev) { if (strcmp(type,...
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": true, "project": "qemu", "commit_id": "6687b79d636cd60ed9adb1177d0d946b58fa7717", "normalized_at": "2026-06-20T05:17:39.310817Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_003874
CodeXGLUE Defect Detection
public_dataset
train
4774
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static av_cold int adpcm_decode_init(AVCodecContext * avctx) { ADPCMDecodeContext *c = avctx->priv_data; unsigned int min_channels = 1; unsigned int max_channels = 2; switch(avctx->codec->id) { case AV_CODEC_ID_ADPCM_DTK: case AV_CODEC_ID_ADPCM_EA: min_channels = 2; br...
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": false, "project": "FFmpeg", "commit_id": "3f9fa2d0b58b142b165d4a8eaa61d7e837a76838", "normalized_at": "2026-06-20T05:17:39.022866Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
owasp_python_001076
OWASP Benchmark Python
public_dataset
processed
1076
python
generic
security_review
CWE-328
A02: Cryptographic Failures
medium
false
Weak Hashing Algorithm
''' OWASP Benchmark for Python v0.1 This file is part of the Open Web Application Security Project (OWASP) Benchmark Project. For details, please see https://owasp.org/www-project-benchmark. The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms of the GNU General Public Licens...
This example was normalized from OWASP Benchmark Python. It is intended for security review and vulnerability detection. A secure repair is not included in this source-specific normalized record.
[ "owasp", "benchmark-python", "python", "cwe-328" ]
{ "raw_path": "testcode/BenchmarkTest01076.py", "label_source": "data/raw/owasp_benchmark_python/expectedresults-0.1.csv", "normalized_at": "2026-06-20T05:21:00.728526Z", "name_fixed_at": "2026-06-20T05:22:49.841827Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_002036
CodeXGLUE Defect Detection
public_dataset
train
2479
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static void img_copy(uint8_t *dst, int dst_wrap, uint8_t *src, int src_wrap, int width, int height) { for(;height > 0; height--) { memcpy(dst, src, width); dst += dst_wrap; src += src_wrap; } }
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": false, "project": "FFmpeg", "commit_id": "7e7e59409294af9caa63808e56c5cc824c98b4fc", "normalized_at": "2026-06-20T05:17:38.971685Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_007744
CodeXGLUE Defect Detection
public_dataset
train
9626
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
void do_info_roms(Monitor *mon) { Rom *rom; QTAILQ_FOREACH(rom, &roms, next) { if (!rom->fw_file) { monitor_printf(mon, "addr=" TARGET_FMT_plx " size=0x%06zx mem=%s name=\"%s\" \n", rom->addr, rom->romsize, ...
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": false, "project": "qemu", "commit_id": "bdb5ee3064d5ae786b0bcb6cf6ff4e3554a72990", "normalized_at": "2026-06-20T05:17:39.120724Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_011782
CodeXGLUE Defect Detection
public_dataset
train
14662
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static int cmp(const void *key, const void *node) { return (*(const int64_t *) key) - ((const CacheEntry *) node)->logical_pos; }
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": true, "project": "FFmpeg", "commit_id": "72f9a6349cae0eba7caf9e338bee46c1d9baed27", "normalized_at": "2026-06-20T05:17:39.223908Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_021420
CodeXGLUE Defect Detection
public_dataset
train
26785
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static mfxIMPL choose_implementation(const InputStream *ist) { static const struct { const char *name; mfxIMPL impl; } impl_map[] = { { "auto", MFX_IMPL_AUTO }, { "sw", MFX_IMPL_SOFTWARE }, { "hw", MFX_IMPL_HARDWARE }, ...
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": false, "project": "FFmpeg", "commit_id": "03cef34aa66662e2ab3681d290e7c5a6634f4058", "normalized_at": "2026-06-20T05:17:39.479687Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_008571
CodeXGLUE Defect Detection
public_dataset
train
10664
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static av_cold int truemotion1_decode_init(AVCodecContext *avctx) { TrueMotion1Context *s = avctx->priv_data; s->avctx = avctx; // FIXME: it may change ? // if (avctx->bits_per_sample == 24) // avctx->pix_fmt = AV_PIX_FMT_RGB24; // else // avctx->pix_fmt = AV_PIX_FMT_RGB555; ...
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": true, "project": "FFmpeg", "commit_id": "46e75617d9700be8840a843237f8571061a63a8e", "normalized_at": "2026-06-20T05:17:39.139710Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_000375
CodeXGLUE Defect Detection
public_dataset
train
468
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static void select_soundhw (const char *optarg) { struct soundhw *c; if (*optarg == '?') { show_valid_cards: printf ("Valid sound card names (comma separated):\n"); for (c = soundhw; c->name; ++c) { printf ("%-11s %s\n", c->name, c->descr); } printf (...
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": false, "project": "qemu", "commit_id": "ad96090a01d848df67d70c5259ed8aa321fa8716", "normalized_at": "2026-06-20T05:17:38.926775Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_018773
CodeXGLUE Defect Detection
public_dataset
train
23458
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static BusState *qbus_find_bus(DeviceState *dev, char *elem) { BusState *child; LIST_FOREACH(child, &dev->child_bus, sibling) { if (strcmp(child->name, elem) == 0) { return child; } } return NULL; }
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": false, "project": "qemu", "commit_id": "72cf2d4f0e181d0d3a3122e04129c58a95da713e", "normalized_at": "2026-06-20T05:17:39.407873Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_019087
CodeXGLUE Defect Detection
public_dataset
train
23843
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
int av_lockmgr_register(int (*cb)(void **mutex, enum AVLockOp op)) { if (lockmgr_cb) { // There is no good way to rollback a failure to destroy the // mutex, so we ignore failures. lockmgr_cb(&codec_mutex, AV_LOCK_DESTROY); lockmgr_cb(&avformat_mutex, AV_LOCK_DESTROY); ...
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": true, "project": "FFmpeg", "commit_id": "a04c2c707de2ce850f79870e84ac9d7ec7aa9143", "normalized_at": "2026-06-20T05:17:39.416838Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_009895
CodeXGLUE Defect Detection
public_dataset
train
12335
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static void dirac_unpack_block_motion_data(DiracContext *s) { GetBitContext *gb = &s->gb; uint8_t *sbsplit = s->sbsplit; int i, x, y, q, p; DiracArith arith[8]; align_get_bits(gb); /* [DIRAC_STD] 11.2.4 and 12.2.1 Number of blocks and superblocks */ s->sbwidth = DIVRNDUP(s->sour...
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": true, "project": "FFmpeg", "commit_id": "9729f140ae073f1df2041b6c5fd2068592eb9c48", "normalized_at": "2026-06-20T05:17:39.173693Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_010802
CodeXGLUE Defect Detection
public_dataset
train
13471
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static void copy_context_reset(AVCodecContext *avctx) { av_opt_free(avctx); av_freep(&avctx->rc_override); av_freep(&avctx->intra_matrix); av_freep(&avctx->inter_matrix); av_freep(&avctx->extradata); av_freep(&avctx->subtitle_header); av_buffer_unref(&avctx->hw_frames_ctx); avctx->subtit...
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": true, "project": "FFmpeg", "commit_id": "cac8de2da5c4935773128335c11b806faa73e19d", "normalized_at": "2026-06-20T05:17:39.197534Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_008749
CodeXGLUE Defect Detection
public_dataset
train
10896
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static int bdrv_qed_check(BlockDriverState *bs, BdrvCheckResult *result) { BDRVQEDState *s = bs->opaque; return qed_check(s, result, false); }
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": false, "project": "qemu", "commit_id": "4534ff5426afeeae5238ba10a696cafa9a0168ee", "normalized_at": "2026-06-20T05:17:39.144671Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_014639
CodeXGLUE Defect Detection
public_dataset
train
18286
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static void xenstore_record_dm_state(struct xs_handle *xs, const char *state) { char path[50]; if (xs == NULL) { fprintf(stderr, "xenstore connection not initialized\n"); exit(1); } snprintf(path, sizeof (path), "/local/domain/0/device-model/%u/state", xen_domid); if (!xs...
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": true, "project": "qemu", "commit_id": "33876dfad64bc481f59c5e9ccf60db78624c4b93", "normalized_at": "2026-06-20T05:17:39.294515Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_007718
CodeXGLUE Defect Detection
public_dataset
train
9594
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static void vector_fmul_vfp(float *dst, const float *src, int len) { int tmp; asm volatile( "fmrx %[tmp], fpscr\n\t" "orr %[tmp], %[tmp], #(3 << 16)\n\t" /* set vector size to 4 */ "fmxr fpscr, %[tmp]\n\t" "fldmias %[dst_r]!, {s0-s3}\n\t" ...
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": true, "project": "FFmpeg", "commit_id": "28215b3700723da0c0beb93945702b6fb2b3596d", "normalized_at": "2026-06-20T05:17:39.119977Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_012569
CodeXGLUE Defect Detection
public_dataset
train
15650
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
int tcp_ctl(struct socket *so) { Slirp *slirp = so->slirp; struct sbuf *sb = &so->so_snd; struct ex_list *ex_ptr; int do_pty; DEBUG_CALL("tcp_ctl"); DEBUG_ARG("so = %lx", (long )so); if (so->so_faddr.s_addr != slirp->vhost_addr.s_addr) { /* Check if it's pty_exec */ ...
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": false, "project": "qemu", "commit_id": "b2bedb214469af55179d907a60cd67fed6b0779e", "normalized_at": "2026-06-20T05:17:39.242704Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_008546
CodeXGLUE Defect Detection
public_dataset
train
10635
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static int avi_read_seek(AVFormatContext *s, int stream_index, int64_t timestamp, int flags) { AVIContext *avi = s->priv_data; AVStream *st; int i, index; int64_t pos, pos_min; AVIStream *ast; /* Does not matter which stream is requested dv in avi has the ...
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": true, "project": "FFmpeg", "commit_id": "14bac7e00d72eac687612d9b125e585011a56d4f", "normalized_at": "2026-06-20T05:17:39.139202Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_000224
CodeXGLUE Defect Detection
public_dataset
train
277
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
av_cold void ff_dsputil_init_x86(DSPContext *c, AVCodecContext *avctx) { int cpu_flags = av_get_cpu_flags(); #if HAVE_7REGS && HAVE_INLINE_ASM if (HAVE_MMX && cpu_flags & AV_CPU_FLAG_CMOV) c->add_hfyu_median_prediction = ff_add_hfyu_median_prediction_cmov; #endif if (X86_MMX(cpu_flags)) {...
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": true, "project": "FFmpeg", "commit_id": "1bf8fa75ee148f40938d47bb9aaf53ac3c1ae126", "normalized_at": "2026-06-20T05:17:38.922281Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_008129
CodeXGLUE Defect Detection
public_dataset
train
10114
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static int lut2_config_output(AVFilterLink *outlink) { AVFilterContext *ctx = outlink->src; LUT2Context *s = ctx->priv; AVFilterLink *srcx = ctx->inputs[0]; AVFilterLink *srcy = ctx->inputs[1]; FFFrameSyncIn *in; int ret; if (srcx->format != srcy->format) { av_log(ctx, AV_...
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": true, "project": "FFmpeg", "commit_id": "a4d18a3f54e5b0277234d8fcff65dff8516417a0", "normalized_at": "2026-06-20T05:17:39.129375Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_010604
CodeXGLUE Defect Detection
public_dataset
train
13219
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static av_cold int bfi_decode_init(AVCodecContext *avctx) { BFIContext *bfi = avctx->priv_data; avctx->pix_fmt = AV_PIX_FMT_PAL8; bfi->dst = av_mallocz(avctx->width * avctx->height); return 0; }
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": true, "project": "FFmpeg", "commit_id": "1a3d142f1f1e65f554cba84d8a515684ecb390d0", "normalized_at": "2026-06-20T05:17:39.192770Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
owasp_python_000106
OWASP Benchmark Python
public_dataset
processed
106
python
generic
security_review
CWE-643
A03: Injection
high
false
XPath Injection
''' OWASP Benchmark for Python v0.1 This file is part of the Open Web Application Security Project (OWASP) Benchmark Project. For details, please see https://owasp.org/www-project-benchmark. The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms of the GNU General Public Licens...
This example was normalized from OWASP Benchmark Python. It is intended for security review and vulnerability detection. A secure repair is not included in this source-specific normalized record.
[ "owasp", "benchmark-python", "python", "cwe-643" ]
{ "raw_path": "testcode/BenchmarkTest00106.py", "label_source": "data/raw/owasp_benchmark_python/expectedresults-0.1.csv", "normalized_at": "2026-06-20T05:21:00.685365Z", "name_fixed_at": "2026-06-20T05:22:49.826546Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_004608
CodeXGLUE Defect Detection
public_dataset
train
5705
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static int qcow2_do_open(BlockDriverState *bs, QDict *options, int flags, Error **errp) { BDRVQcow2State *s = bs->opaque; unsigned int len, i; int ret = 0; QCowHeader header; Error *local_err = NULL; uint64_t ext_end; uint64_t l1_vm_state_index; ret =...
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": false, "project": "qemu", "commit_id": "b25b387fa5928e516cb2c9e7fde68e958bd7e50a", "normalized_at": "2026-06-20T05:17:39.040948Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_006055
CodeXGLUE Defect Detection
public_dataset
train
7536
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
PPC_OP(setcrfbit) { T1 = (T1 & PARAM(1)) | (T0 << PARAM(2)); RETURN(); }
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": true, "project": "qemu", "commit_id": "d9bce9d99f4656ae0b0127f7472db9067b8f84ab", "normalized_at": "2026-06-20T05:17:39.078697Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_003126
CodeXGLUE Defect Detection
public_dataset
train
3830
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static int process_input_packet(InputStream *ist, const AVPacket *pkt, int no_eof) { int ret = 0, i; int got_output = 0; AVPacket avpkt; if (!ist->saw_first_ts) { ist->dts = ist->st->avg_frame_rate.num ? - ist->dec_ctx->has_b_frames * AV_TIME_BASE / av_q2d(ist->st->avg_frame_rate) : 0; ...
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": true, "project": "FFmpeg", "commit_id": "8f6f2322285fc14f8f16377db50355864019a757", "normalized_at": "2026-06-20T05:17:39.003345Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
owasp_python_000467
OWASP Benchmark Python
public_dataset
processed
467
python
generic
security_review
CWE-643
A03: Injection
high
false
XPath Injection
''' OWASP Benchmark for Python v0.1 This file is part of the Open Web Application Security Project (OWASP) Benchmark Project. For details, please see https://owasp.org/www-project-benchmark. The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms of the GNU General Public Licens...
This example was normalized from OWASP Benchmark Python. It is intended for security review and vulnerability detection. A secure repair is not included in this source-specific normalized record.
[ "owasp", "benchmark-python", "python", "cwe-643" ]
{ "raw_path": "testcode/BenchmarkTest00467.py", "label_source": "data/raw/owasp_benchmark_python/expectedresults-0.1.csv", "normalized_at": "2026-06-20T05:21:00.700991Z", "name_fixed_at": "2026-06-20T05:22:49.833224Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_013135
CodeXGLUE Defect Detection
public_dataset
train
16357
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static av_cold int X264_init(AVCodecContext *avctx) { X264Context *x4 = avctx->priv_data; int sw,sh; if (avctx->global_quality > 0) av_log(avctx, AV_LOG_WARNING, "-qscale is ignored, -crf is recommended.\n"); x264_param_default(&x4->params); x4->params.b_deblocking_filter ...
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": true, "project": "FFmpeg", "commit_id": "066dc0437368acd21546ee327a0a94c60c3808b2", "normalized_at": "2026-06-20T05:17:39.257462Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_002843
CodeXGLUE Defect Detection
public_dataset
train
3479
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
iscsi_aio_ioctl_cb(struct iscsi_context *iscsi, int status, void *command_data, void *opaque) { IscsiAIOCB *acb = opaque; if (acb->canceled) { qemu_aio_release(acb); return; } acb->status = 0; if (status < 0) { error_report("Failed to ioctl(...
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": true, "project": "qemu", "commit_id": "b20909195745c34a819aed14ae996b60ab0f591f", "normalized_at": "2026-06-20T05:17:38.995202Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_010746
CodeXGLUE Defect Detection
public_dataset
train
13400
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static av_noinline void FUNC(hl_decode_mb)(H264Context *h, H264SliceContext *sl) { const int mb_x = h->mb_x; const int mb_y = h->mb_y; const int mb_xy = h->mb_xy; const int mb_type = h->cur_pic.mb_type[mb_xy]; uint8_t *dest_y, *dest_cb, *dest_cr; int linesize, uvlinesize /*dct_off...
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": false, "project": "FFmpeg", "commit_id": "e6c90ce94f1b07f50cea2babf7471af455cca0ff", "normalized_at": "2026-06-20T05:17:39.196255Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }