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_000051
CodeXGLUE Defect Detection
public_dataset
train
59
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
void virtio_scsi_handle_cmd_req_submit(VirtIOSCSI *s, VirtIOSCSIReq *req) { SCSIRequest *sreq = req->sreq; if (scsi_req_enqueue(sreq)) { scsi_req_continue(sreq); } bdrv_io_unplug(sreq->dev->conf.bs); scsi_req_unref(sreq); }
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:38.915858Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_020644
CodeXGLUE Defect Detection
public_dataset
train
25815
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static int nvme_init(PCIDevice *pci_dev) { NvmeCtrl *n = NVME(pci_dev); NvmeIdCtrl *id = &n->id_ctrl; int i; int64_t bs_size; uint8_t *pci_conf; if (!(n->conf.bs)) { return -1; } bs_size = bdrv_getlength(n->conf.bs); if (bs_size < 0) { return -1; ...
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.456875Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_013210
CodeXGLUE Defect Detection
public_dataset
train
16456
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static int mov_read_trun(MOVContext *c, AVIOContext *pb, MOVAtom atom) { MOVFragment *frag = &c->fragment; AVStream *st = NULL; MOVStreamContext *sc; MOVStts *ctts_data; uint64_t offset; int64_t dts; int data_offset = 0; unsigned entries, first_sample_flags = frag->flags; 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": "f1e47f87131dd7c3718496b83911e17586e26e80", "normalized_at": "2026-06-20T05:17:39.259250Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_020137
CodeXGLUE Defect Detection
public_dataset
train
25177
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
void net_check_clients(void) { VLANState *vlan; VLANClientState *vc; int i; /* Don't warn about the default network setup that you get if * no command line -net or -netdev options are specified. There * are two cases that we would otherwise complain about: * (1) board doesn't su...
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": "81017645e45bcb0b4d985e900c501f92f2c6fb60", "normalized_at": "2026-06-20T05:17:39.445294Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_014305
CodeXGLUE Defect Detection
public_dataset
train
17856
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
int64_t ff_ape_parse_tag(AVFormatContext *s) { AVIOContext *pb = s->pb; int file_size = avio_size(pb); uint32_t val, fields, tag_bytes; uint8_t buf[8]; int64_t tag_start; int i; if (file_size < APE_TAG_FOOTER_BYTES) return 0; avio_seek(pb, file_size - APE_TAG_FOOTER...
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": "b655cfefafd565590bfc5976b9ce8dd141b3c41c", "normalized_at": "2026-06-20T05:17:39.285701Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_020869
CodeXGLUE Defect Detection
public_dataset
train
26084
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static int fir_channel(AVFilterContext *ctx, void *arg, int ch, int nb_jobs) { AudioFIRContext *s = ctx->priv; const float *src = (const float *)s->in[0]->extended_data[ch]; int index1 = (s->index + 1) % 3; int index2 = (s->index + 2) % 3; float *sum = s->sum[ch]; AVFrame *out = arg; ...
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": "bd404e3949b081788247e2e6e9df0581ef7cc190", "normalized_at": "2026-06-20T05:17:39.462414Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_000938
CodeXGLUE Defect Detection
public_dataset
train
1156
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
void gic_complete_irq(GICState *s, int cpu, int irq) { int update = 0; int cm = 1 << cpu; DPRINTF("EOI %d\n", irq); if (irq >= s->num_irq) { /* This handles two cases: * 1. If software writes the ID of a spurious interrupt [ie 1023] * to the GICC_EOIR, the GIC ignores 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": false, "project": "qemu", "commit_id": "f9c6a7f1395c6d88a3bb1a0cb48811994709966e", "normalized_at": "2026-06-20T05:17:38.942975Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_010008
CodeXGLUE Defect Detection
public_dataset
train
12483
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
void cpu_resume_from_signal(CPUState *env1, void *puc) { env = env1; /* XXX: restore cpu registers saved in host registers */ env->exception_index = -1; longjmp(env->jmp_env, 1); }
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": "cea5f9a28faa528b6b1b117c9ab2d8828f473fef", "normalized_at": "2026-06-20T05:17:39.177073Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_006201
CodeXGLUE Defect Detection
public_dataset
train
7708
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static void decode_vui(HEVCContext *s, HEVCSPS *sps) { VUI *vui = &sps->vui; GetBitContext *gb = &s->HEVClc->gb; int sar_present; av_log(s->avctx, AV_LOG_DEBUG, "Decoding VUI\n"); sar_present = get_bits1(gb); if (sar_present) { uint8_t sar_idx = get_bits(gb, 8); ...
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": "b818637b84948e917d11c987f2270cea5b3fcfea", "normalized_at": "2026-06-20T05:17:39.082240Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_006529
CodeXGLUE Defect Detection
public_dataset
train
8132
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static unsigned decode_skip_count(GetBitContext* gb) { unsigned value; // This function reads a maximum of 23 bits, // which is within the padding space if (!can_safely_read(gb, 1)) return -1; value = get_bits1(gb); if (!value) return value; value += get_bits(gb, ...
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": "e494f44c051d7dccc038a603ab22532b87dd1705", "normalized_at": "2026-06-20T05:17:39.090388Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_010897
CodeXGLUE Defect Detection
public_dataset
train
13586
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static int get_phys_addr_v5(CPUARMState *env, uint32_t address, int access_type, ARMMMUIdx mmu_idx, hwaddr *phys_ptr, int *prot, target_ulong *page_size) { CPUState *cs = CPU(arm_env_get_cpu(env)); int code; uint32_t table; uint32_t desc; ...
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": "0fbf5238203041f734c51b49778223686f14366b", "normalized_at": "2026-06-20T05:17:39.199796Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_005919
CodeXGLUE Defect Detection
public_dataset
train
7361
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static void store_word(DBDMA_channel *ch, int key, uint32_t addr, uint16_t len) { dbdma_cmd *current = &ch->current; uint32_t val; DBDMA_DPRINTF("store_word\n"); /* only implements KEY_SYSTEM */ if (key != KEY_SYSTEM) { printf("DBDMA: STORE_WORD, unimpleme...
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": "ad674e53b5cce265fadafbde2c6a4f190345cd00", "normalized_at": "2026-06-20T05:17:39.075511Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_003926
CodeXGLUE Defect Detection
public_dataset
train
4838
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static void ga_channel_listen_close(GAChannel *c) { g_assert(c->method == GA_CHANNEL_UNIX_LISTEN); g_assert(c->listen_channel); g_io_channel_shutdown(c->listen_channel, true, NULL); g_io_channel_unref(c->listen_channel); c->listen_channel = 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": "f06b2031a31cdd3acf6f61a977e505b8c6b58f73", "normalized_at": "2026-06-20T05:17:39.024220Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_013384
CodeXGLUE Defect Detection
public_dataset
train
16674
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static void musicpal_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; qemu_irq *cpu_pic; qemu_irq pic[32]; DeviceState *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": true, "project": "qemu", "commit_id": "e23a1b33b53d25510320b26d9f154e19c6c99725", "normalized_at": "2026-06-20T05:17:39.262687Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_021426
CodeXGLUE Defect Detection
public_dataset
train
26793
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
void virtio_scsi_dataplane_start(VirtIOSCSI *s) { int i; int rc; BusState *qbus = BUS(qdev_get_parent_bus(DEVICE(s))); VirtioBusClass *k = VIRTIO_BUS_GET_CLASS(qbus); VirtIOSCSICommon *vs = VIRTIO_SCSI_COMMON(s); if (s->dataplane_started || s->dataplane_starting || s->...
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": "ad07cd69ecaffbaa015459a46975ab32e50df805", "normalized_at": "2026-06-20T05:17:39.479842Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_005621
CodeXGLUE Defect Detection
public_dataset
train
6982
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static void send_ext_key_event_ack(VncState *vs) { vnc_lock_output(vs); vnc_write_u8(vs, VNC_MSG_SERVER_FRAMEBUFFER_UPDATE); vnc_write_u8(vs, 0); vnc_write_u16(vs, 1); vnc_framebuffer_update(vs, 0, 0, surface_width(vs->vd->ds), surface_he...
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": "bea60dd7679364493a0d7f5b54316c767cf894ef", "normalized_at": "2026-06-20T05:17:39.067937Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_014585
CodeXGLUE Defect Detection
public_dataset
train
18215
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
void do_subfo (void) { T2 = T0; T0 = T1 - T0; if (likely(!(((~T2) ^ T1 ^ (-1)) & ((~T2) ^ T0) & (1 << 31)))) { xer_ov = 0; } else { xer_so = 1; xer_ov = 1; } 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.292500Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_011172
CodeXGLUE Defect Detection
public_dataset
train
13922
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
int ff_alloc_packet2(AVCodecContext *avctx, AVPacket *avpkt, int size) { if (size < 0 || avpkt->size < 0 || size > INT_MAX - FF_INPUT_BUFFER_PADDING_SIZE) { av_log(avctx, AV_LOG_ERROR, "Size %d invalid\n", size); return AVERROR(EINVAL); } if (avctx) { av_assert0(!avpkt->data...
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": "47c9887ecaa764006cf661a6446b3533472f6a6e", "normalized_at": "2026-06-20T05:17:39.208071Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_006075
CodeXGLUE Defect Detection
public_dataset
train
7561
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static inline int handle_cpu_signal(unsigned long pc, unsigned long address, int is_write, sigset_t *old_set, void *puc) { TranslationBlock *tb; int ret; if (cpu_single_env) env = cpu_single_env; /* XXX: find a correct...
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": "54ca9095f046dfa03c3d093cc55f6d76b61864e1", "normalized_at": "2026-06-20T05:17:39.079121Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_016993
CodeXGLUE Defect Detection
public_dataset
train
21231
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static void migration_end(void) { if (migration_bitmap) { memory_global_dirty_log_stop(); g_free(migration_bitmap); migration_bitmap = NULL; } if (XBZRLE.cache) { cache_fini(XBZRLE.cache); g_free(XBZRLE.cache); g_free(XBZRLE.encoded_buf); ...
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": "f6c6483b259a2395ee44cfa966f622e0f2dbe2ae", "normalized_at": "2026-06-20T05:17:39.357064Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_007037
CodeXGLUE Defect Detection
public_dataset
train
8746
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static void gen_callwi(DisasContext *dc, int callinc, uint32_t dest, int slot) { TCGv_i32 tmp = tcg_const_i32(dest); if (((dc->pc ^ dest) & TARGET_PAGE_MASK) != 0) { slot = -1; } gen_callw_slot(dc, callinc, tmp, slot); tcg_temp_free(tmp); }
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": "433d33c555deeed375996e338df1a9510df401c6", "normalized_at": "2026-06-20T05:17:39.103420Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_009903
CodeXGLUE Defect Detection
public_dataset
train
12343
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static void vmxnet3_complete_packet(VMXNET3State *s, int qidx, uint32_t tx_ridx) { struct Vmxnet3_TxCompDesc txcq_descr; PCIDevice *d = PCI_DEVICE(s); VMXNET3_RING_DUMP(VMW_RIPRN, "TXC", qidx, &s->txq_descr[qidx].comp_ring); txcq_descr.txdIdx = tx_ridx; txcq_descr.gen = vmxnet3_ring_curr_...
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": "fdda170e50b8af062cf5741e12c4fb5e57a2eacf", "normalized_at": "2026-06-20T05:17:39.173830Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_005522
CodeXGLUE Defect Detection
public_dataset
train
6861
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static PCIDevice *do_pci_register_device(PCIDevice *pci_dev, PCIBus *bus, const char *name, int devfn) { PCIDeviceClass *pc = PCI_DEVICE_GET_CLASS(pci_dev); PCIConfigReadFunc *config_read = pc->config_read; PCIConfigWriteFunc *config_write = pc->config_write; ...
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": "c31d04b516b183b02336f8cce65a41bd547f6f6b", "normalized_at": "2026-06-20T05:17:39.064940Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_012402
CodeXGLUE Defect Detection
public_dataset
train
15439
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static void rtas_event_log_queue(int log_type, void *data, bool exception) { sPAPRMachineState *spapr = SPAPR_MACHINE(qdev_get_machine()); sPAPREventLogEntry *entry = g_new(sPAPREventLogEntry, 1); g_assert(data); entry->log_type = log_type; entry->exception = exception; entry->data = da...
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": "bff3063837a76b37a4bbbfe614324ca38e859f2b", "normalized_at": "2026-06-20T05:17:39.238627Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_007754
CodeXGLUE Defect Detection
public_dataset
train
9640
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static int ssi_sd_init(SSISlave *d) { DeviceState *dev = DEVICE(d); ssi_sd_state *s = FROM_SSI_SLAVE(ssi_sd_state, d); DriveInfo *dinfo; s->mode = SSI_SD_CMD; dinfo = drive_get_next(IF_SD); s->sd = sd_init(dinfo ? blk_bs(blk_by_legacy_dinfo(dinfo)) : NULL, true); if (s->sd == 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": "4be746345f13e99e468c60acbd3a355e8183e3ce", "normalized_at": "2026-06-20T05:17:39.120871Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_007962
CodeXGLUE Defect Detection
public_dataset
train
9920
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
int ff_framesync_dualinput_get_writable(FFFrameSync *fs, AVFrame **f0, AVFrame **f1) { int ret; ret = ff_framesync_dualinput_get(fs, f0, f1); if (ret < 0) return ret; ret = ff_inlink_make_frame_writable(fs->parent->inputs[0], f0); if (ret < 0) { av_frame_free(f0); ...
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": "29b5f3115d9f217758bebd1d00e541aa3e739d2a", "normalized_at": "2026-06-20T05:17:39.125636Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_004356
CodeXGLUE Defect Detection
public_dataset
train
5390
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static void hpet_reset(void *opaque) { HPETState *s = opaque; int i; static int count = 0; for (i = 0; i < HPET_NUM_TIMERS; i++) { HPETTimer *timer = &s->timer[i]; hpet_del_timer(timer); timer->tn = i; timer->cmp = ~0ULL; timer->config = HPET_TN_PER...
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": "7afbecc9efa64a88ab6194c2cf1d6feabd03d119", "normalized_at": "2026-06-20T05:17:39.034684Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_019044
CodeXGLUE Defect Detection
public_dataset
train
23793
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
void ff_init_vscale_pfn(SwsContext *c, yuv2planar1_fn yuv2plane1, yuv2planarX_fn yuv2planeX, yuv2interleavedX_fn yuv2nv12cX, yuv2packed1_fn yuv2packed1, yuv2packed2_fn yuv2packed2, yuv2packedX_fn yuv2packedX, yuv2anyX_fn yuv2anyX, int use_mmx) { VScalerContext *lumCtx = 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": "FFmpeg", "commit_id": "eb7802afefb7af4da50bc56818cdab9da07de7d0", "normalized_at": "2026-06-20T05:17:39.415158Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_008521
CodeXGLUE Defect Detection
public_dataset
train
10604
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static void check_guest_output(const testdef_t *test, int fd) { bool output_ok = false; int i, nbr, pos = 0; char ch; /* Poll serial output... Wait at most 60 seconds */ for (i = 0; i < 6000; ++i) { while ((nbr = read(fd, &ch, 1)) == 1) { if (ch == test->expect[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": "qemu", "commit_id": "92b540dac9fc3a572c7342edd0b073000f5a6abf", "normalized_at": "2026-06-20T05:17:39.138528Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_015604
CodeXGLUE Defect Detection
public_dataset
train
19500
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static void term_handle_command(const char *cmdline) { const char *p, *pstart, *typestr; char *q; int c, nb_args, len, i, has_arg; term_cmd_t *cmd; char cmdname[256]; char buf[1024]; void *str_allocated[MAX_ARGS]; void *args[MAX_ARGS]; #ifdef DEBUG term_printf("command='...
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": "7e2515e87c41e2e658aaed466e11cbdf1ea8bcb1", "normalized_at": "2026-06-20T05:17:39.320087Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_006155
CodeXGLUE Defect Detection
public_dataset
train
7650
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static int mov_write_audio_tag(AVIOContext *pb, MOVTrack *track) { int64_t pos = avio_tell(pb); int version = 0; uint32_t tag = track->tag; if (track->mode == MODE_MOV) { if (track->timescale > UINT16_MAX) { if (mov_get_lpcm_flags(track->enc->codec_id)) tag ...
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": "60b433d905c582ed3656c120b3ffffd0119d5377", "normalized_at": "2026-06-20T05:17:39.080893Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_014841
CodeXGLUE Defect Detection
public_dataset
train
18549
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static void rtsp_send_cmd (AVFormatContext *s, const char *cmd, RTSPMessageHeader *reply, unsigned char **content_ptr) { rtsp_send_cmd_async(s, cmd, reply, content_ptr); rtsp_read_reply(s, reply, content_ptr, 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": false, "project": "FFmpeg", "commit_id": "c89658008705d949c319df3fa6f400c481ad73e1", "normalized_at": "2026-06-20T05:17:39.299826Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_015163
CodeXGLUE Defect Detection
public_dataset
train
18949
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
void cpu_loop(CPUPPCState *env) { CPUState *cs = CPU(ppc_env_get_cpu(env)); target_siginfo_t info; int trapnr; target_ulong ret; for(;;) { cpu_exec_start(cs); trapnr = cpu_ppc_exec(cs); cpu_exec_end(cs); switch(trapnr) { case POWERPC_EXCP_NONE: ...
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": "9b2fadda3e0196ffd485adde4fe9cdd6fae35300", "normalized_at": "2026-06-20T05:17:39.308451Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_020873
CodeXGLUE Defect Detection
public_dataset
train
26089
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static int paf_video_decode(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *pkt) { PAFVideoDecContext *c = avctx->priv_data; uint8_t code, *dst, *end; int i, frame, ret; if (pkt->size < 2) return AVERROR_INVALIDDATA; bytestream2_init(&c->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": "FFmpeg", "commit_id": "c4360559ee2a6c8c624f24fc7e2a1cf00972ba68", "normalized_at": "2026-06-20T05:17:39.462490Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_003459
CodeXGLUE Defect Detection
public_dataset
train
4246
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
void *g_try_realloc(void *mem, size_t n_bytes) { __coverity_negative_sink__(n_bytes); return realloc(mem, n_bytes == 0 ? 1 : n_bytes); }
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": "9d7a4c6690ef9962a3b20034f65008f1ea15c1d6", "normalized_at": "2026-06-20T05:17:39.012346Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_021782
CodeXGLUE Defect Detection
public_dataset
train
27227
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static int query_formats(AVFilterGraph *graph, AVClass *log_ctx) { int i, j, ret; int scaler_count = 0, resampler_count = 0; int count_queried = 0, count_merged = 0, count_already_merged = 0, count_delayed = 0; for (i = 0; i < graph->nb_filters; i++) { AVFilterContext *f = graph...
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": "4582e4c086bc36e20e3c0b85c8108cfa352e0d88", "normalized_at": "2026-06-20T05:17:39.492544Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_000686
CodeXGLUE Defect Detection
public_dataset
train
843
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
uint32_t do_arm_semihosting(CPUState *env) { target_ulong args; char * s; int nr; uint32_t ret; uint32_t len; #ifdef CONFIG_USER_ONLY TaskState *ts = env->opaque; #else CPUState *ts = env; #endif nr = env->regs[0]; args = env->regs[1]; switch (nr) { case SYS_...
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": "206ae74aea5593f5f5bad769a6b4f101f17bc6fd", "normalized_at": "2026-06-20T05:17:38.934564Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_015976
CodeXGLUE Defect Detection
public_dataset
train
19956
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static always_inline int _pte_check (mmu_ctx_t *ctx, int is_64b, target_ulong pte0, target_ulong pte1, int h, int rw) { target_ulong ptem, mmask; int access, ret, pteh, ptev; access = 0; ret = -1; /* Check validity a...
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": "b227a8e9aa5f27d29f77ba90d5eb9d0662a1175e", "normalized_at": "2026-06-20T05:17:39.330726Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_009543
CodeXGLUE Defect Detection
public_dataset
train
11875
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static const uint8_t *read_huffman_tables(FourXContext *f, const uint8_t * const buf){ int frequency[512]; uint8_t flag[512]; int up[512]; uint8_t len_tab[257]; int bits_tab[257]; int start, end; const uint8_t *ptr= buf; int j; memset(frequency, 0, sizeof(frequency)); ...
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": "1b1182ce97db7a97914bb7713eba66fee5d93937", "normalized_at": "2026-06-20T05:17:39.164795Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_018242
CodeXGLUE Defect Detection
public_dataset
train
22782
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static uint64_t omap_id_read(void *opaque, target_phys_addr_t addr, unsigned size) { struct omap_mpu_state_s *s = (struct omap_mpu_state_s *) opaque; if (size != 4) { return omap_badwidth_read32(opaque, addr); } switch (addr) { case 0xfffe1800: /* DIE...
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.394681Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_000119
CodeXGLUE Defect Detection
public_dataset
train
141
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
void MPV_common_end(MpegEncContext *s) { int i; if (s->motion_val) free(s->motion_val); if (s->h263_pred) { free(s->dc_val[0]); free(s->ac_val[0]); free(s->coded_block); free(s->mbintra_table); } if (s->mbskip_table) free(s->mbskip_table)...
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": "01dbbd0a9af53237cf7aac210370892208bfb957", "normalized_at": "2026-06-20T05:17:38.918450Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_012318
CodeXGLUE Defect Detection
public_dataset
train
15342
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static void local_mapped_file_attr(int dirfd, const char *name, struct stat *stbuf) { FILE *fp; char buf[ATTR_MAX]; int map_dirfd; map_dirfd = openat_dir(dirfd, VIRTFS_META_DIR); if (map_dirfd == -1) { return; } fp = local_fopenat(map_...
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": "81ffbf5ab1458e357a761f1272105a55829b351e", "normalized_at": "2026-06-20T05:17:39.237006Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_004360
CodeXGLUE Defect Detection
public_dataset
train
5394
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static void sd_set_status(SDState *sd) { switch (sd->state) { case sd_inactive_state: sd->mode = sd_inactive; break; case sd_idle_state: case sd_ready_state: case sd_identification_state: sd->mode = sd_card_identification_mode; break; case sd_standb...
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": "10a412dab3f54439ea3d60274eb41668f7d83bd2", "normalized_at": "2026-06-20T05:17:39.034755Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_001001
CodeXGLUE Defect Detection
public_dataset
train
1230
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
void qemu_set_fd_handler(int fd, IOHandler *fd_read, IOHandler *fd_write, void *opaque) { iohandler_init(); aio_set_fd_handler(iohandler_ctx, fd, false, fd_read, fd_write, NULL, opaque); }
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": "c2b38b277a7882a592f4f2ec955084b2b756daaa", "normalized_at": "2026-06-20T05:17:38.944837Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_000156
CodeXGLUE Defect Detection
public_dataset
train
193
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
void tlb_fill(CPUState *env1, target_ulong addr, int is_write, int mmu_idx, void *retaddr) { TranslationBlock *tb; CPUState *saved_env; unsigned long pc; int ret; saved_env = env; ret = cpu_arm_handle_mmu_fault(env, addr, is_write, mmu_idx); if (unlikely(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": true, "project": "qemu", "commit_id": "6e19a1379d3d12c2d8f934aa8154037a609f4507", "normalized_at": "2026-06-20T05:17:38.919882Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_001652
CodeXGLUE Defect Detection
public_dataset
train
2019
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static bool tlb_is_dirty_ram(CPUTLBEntry *tlbe) { return (tlbe->addr_write & (TLB_INVALID_MASK|TLB_MMIO|TLB_NOTDIRTY)) == 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": "b0706b716769494f321a0d2bfd9fa9893992f995", "normalized_at": "2026-06-20T05:17:38.961758Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_020704
CodeXGLUE Defect Detection
public_dataset
train
25886
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
void sd_set_cb(SDState *sd, qemu_irq readonly, qemu_irq insert) { sd->readonly_cb = readonly; sd->inserted_cb = insert; qemu_set_irq(readonly, bdrv_is_read_only(sd->bdrv)); qemu_set_irq(insert, bdrv_is_inserted(sd->bdrv)); }
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": "0d2e91c17829729812bf5d22d20dd0f5d2554ec2", "normalized_at": "2026-06-20T05:17:39.458463Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_011024
CodeXGLUE Defect Detection
public_dataset
train
13742
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
void virtio_reset(void *opaque) { VirtIODevice *vdev = opaque; VirtioDeviceClass *k = VIRTIO_DEVICE_GET_CLASS(vdev); int i; virtio_set_status(vdev, 0); if (current_cpu) { /* Guest initiated reset */ vdev->device_endian = virtio_current_cpu_endian(); } else { /...
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": "f5ed36635d8fa73feb66fe12b3b9c2ed90a1adbe", "normalized_at": "2026-06-20T05:17:39.203063Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
owasp_python_001139
OWASP Benchmark Python
public_dataset
processed
1139
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/BenchmarkTest01139.py", "label_source": "data/raw/owasp_benchmark_python/expectedresults-0.1.csv", "normalized_at": "2026-06-20T05:21:00.731682Z", "name_fixed_at": "2026-06-20T05:22:49.842532Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_007830
CodeXGLUE Defect Detection
public_dataset
train
9746
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static int disas_thumb2_insn(DisasContext *s, uint32_t insn) { uint32_t imm, shift, offset; uint32_t rd, rn, rm, rs; TCGv_i32 tmp; TCGv_i32 tmp2; TCGv_i32 tmp3; TCGv_i32 addr; TCGv_i64 tmp64; int op; int shiftop; int conds; int logic_cc; /* The only 32 bit ...
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": "5158de241b0fb344a6c948dfcbc4e611ab5fafbe", "normalized_at": "2026-06-20T05:17:39.122734Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
owasp_python_001217
OWASP Benchmark Python
public_dataset
processed
1217
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/BenchmarkTest01217.py", "label_source": "data/raw/owasp_benchmark_python/expectedresults-0.1.csv", "normalized_at": "2026-06-20T05:21:00.735256Z", "name_fixed_at": "2026-06-20T05:22:49.843429Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_015935
CodeXGLUE Defect Detection
public_dataset
train
19904
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static int decode_dvd_subtitles(AVSubtitle *sub_header, const uint8_t *buf, int buf_size) { int cmd_pos, pos, cmd, x1, y1, x2, y2, offset1, offset2, next_cmd_pos; int big_offsets, offset_size, is_8bit = 0; const uint8_t *yuv_palette = 0; uint8_t colormap[4], alpha[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": true, "project": "FFmpeg", "commit_id": "ffbe087b589506cb0e671fa711e5c2c6ea203ac0", "normalized_at": "2026-06-20T05:17:39.329882Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_015930
CodeXGLUE Defect Detection
public_dataset
train
19899
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static USBDevice *usb_host_device_open_addr(int bus_num, int addr, const char *prod_name) { int fd = -1, ret; USBDevice *d = NULL; USBHostDevice *dev; struct usbdevfs_connectinfo ci; char buf[1024]; printf("husb: open device %d.%d\n", bus_num, addr); if (!usb_host_device_path) { ...
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": "33e66b86d89040f0a9e99aa53deb74ce8936a649", "normalized_at": "2026-06-20T05:17:39.329734Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_005606
CodeXGLUE Defect Detection
public_dataset
train
6964
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static int decode_p_picture_primary_header(VC9Context *v) { /* INTERFRM, FRMCNT, RANGEREDFRM read in caller */ GetBitContext *gb = &v->s.gb; int lowquant, pqindex, status = 0; pqindex = get_bits(gb, 5); if (v->quantizer_mode == QUANT_FRAME_IMPLICIT) v->pq = pquant_table[0][pqindex];...
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": "bf2bc926f04dcdde0a22c137d08a0bb546e0179e", "normalized_at": "2026-06-20T05:17:39.067377Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_001053
CodeXGLUE Defect Detection
public_dataset
train
1288
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static MemTxResult vtd_mem_ir_write(void *opaque, hwaddr addr, uint64_t value, unsigned size, MemTxAttrs attrs) { int ret = 0; MSIMessage from = {}, to = {}; from.address = (uint64_t) addr + VTD_INTERRUPT_ADDR_FIRST; from.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": "ede9c94acf6cd1968de4188c0228b714ab871a86", "normalized_at": "2026-06-20T05:17:38.946324Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_020632
CodeXGLUE Defect Detection
public_dataset
train
25800
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static void id3v2_parse(AVFormatContext *s, int len, uint8_t version, uint8_t flags, ID3v2ExtraMeta **extra_meta) { int isv34, unsync; unsigned tlen; char tag[5]; int64_t next, end = avio_tell(s->pb) + len; int taghdrlen; const char *reason = NULL; AVIOContex...
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": "0e0f6bd4a5796f4f668092d7925a31b9b30fedd4", "normalized_at": "2026-06-20T05:17:39.456639Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_002043
CodeXGLUE Defect Detection
public_dataset
train
2487
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
iscsi_aio_discard(BlockDriverState *bs, int64_t sector_num, int nb_sectors, BlockDriverCompletionFunc *cb, void *opaque) { IscsiLun *iscsilun = bs->opaque; struct iscsi_context *iscsi = iscsilun->iscsi; IscsiAIOCB *acb; struct unmap_list list[1]; acb = q...
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": "1dde716ed6719c341c1bfa427781f0715af90cbc", "normalized_at": "2026-06-20T05:17:38.971799Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_015084
CodeXGLUE Defect Detection
public_dataset
train
18856
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static int elf_core_dump(int signr, const CPUState *env) { const TaskState *ts = (const TaskState *)env->opaque; struct vm_area_struct *vma = NULL; char corefile[PATH_MAX]; struct elf_note_info info; struct elfhdr elf; struct elf_phdr phdr; struct rlimit dumpsize; struct mm_stru...
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": "80f5ce758ac277e76c016dd7c0b246e40d4fca2d", "normalized_at": "2026-06-20T05:17:39.306583Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_001405
CodeXGLUE Defect Detection
public_dataset
train
1722
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static int decode_block(ALSDecContext *ctx, ALSBlockData *bd) { unsigned int smp; // read block type flag and read the samples accordingly if (*bd->const_block) decode_const_block_data(ctx, bd); else if (decode_var_block_data(ctx, bd)) return -1; // TODO: read RLSLMS exte...
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": "ca488ad480360dfafcb5766f7bfbb567a0638979", "normalized_at": "2026-06-20T05:17:38.955638Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_016599
CodeXGLUE Defect Detection
public_dataset
train
20746
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
void migrate_fd_error(MigrationState *s, const Error *error) { trace_migrate_fd_error(error ? error_get_pretty(error) : ""); assert(s->to_dst_file == NULL); migrate_set_state(&s->state, MIGRATION_STATUS_SETUP, MIGRATION_STATUS_FAILED); if (!s->error) { s->error = err...
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": "25174055f428254427e7541139037eb9a34fc109", "normalized_at": "2026-06-20T05:17:39.346868Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_020067
CodeXGLUE Defect Detection
public_dataset
train
25093
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
int ff_rv34_decode_frame(AVCodecContext *avctx, void *data, int *data_size, uint8_t *buf, int buf_size) { RV34DecContext *r = avctx->priv_data; MpegEncContext *s = &r->s; AVFrame *pict = data; SliceInfo si; int i; int slice_count; ...
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": "de8cac167d52557aa0aced5c013c98f44ade98cf", "normalized_at": "2026-06-20T05:17:39.443690Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_002722
CodeXGLUE Defect Detection
public_dataset
train
3326
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static void nbd_teardown_connection(NbdClientSession *client) { struct nbd_request request = { .type = NBD_CMD_DISC, .from = 0, .len = 0 }; nbd_send_request(client->sock, &request); /* finish any pending coroutines */ shutdown(client->sock, 2); nbd_recv_coro...
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": "4a41a2d68a684241aca96dba066e0699941b730d", "normalized_at": "2026-06-20T05:17:38.992363Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_021221
CodeXGLUE Defect Detection
public_dataset
train
26532
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static uint8_t send_read_command(void) { uint8_t drive = 0; uint8_t head = 0; uint8_t cyl = 0; uint8_t sect_addr = 1; uint8_t sect_size = 2; uint8_t eot = 1; uint8_t gap = 0x1b; uint8_t gpl = 0xff; uint8_t msr = 0; uint8_t st0; uint8_t ret = 0; floppy_s...
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": "6f442fe83821a06c5408056c7879e83a74f2ff32", "normalized_at": "2026-06-20T05:17:39.473791Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_021153
CodeXGLUE Defect Detection
public_dataset
train
26438
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static void tap_cleanup(VLANClientState *nc) { TAPState *s = DO_UPCAST(TAPState, nc, nc); if (s->vhost_net) { vhost_net_cleanup(s->vhost_net); } qemu_purge_queued_packets(nc); if (s->down_script[0]) launch_script(s->down_script, s->down_script_arg, s->fd); tap_r...
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": "43849424cff82803011fad21074531a1101e514e", "normalized_at": "2026-06-20T05:17:39.471392Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_001790
CodeXGLUE Defect Detection
public_dataset
train
2185
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
void qdev_prop_set_globals_for_type(DeviceState *dev, const char *typename, Error **errp) { GlobalProperty *prop; QTAILQ_FOREACH(prop, &global_props, next) { Error *err = NULL; if (strcmp(typename, prop->driver) != 0) { continue; ...
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": "b3ce84fea466f3bca2ff85d158744f00c0f429bd", "normalized_at": "2026-06-20T05:17:38.965624Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_010231
CodeXGLUE Defect Detection
public_dataset
train
12753
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static av_cold int libgsm_close(AVCodecContext *avctx) { av_freep(&avctx->coded_frame); gsm_destroy(avctx->priv_data); avctx->priv_data = NULL; 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": false, "project": "FFmpeg", "commit_id": "8febd6afbca652b331ddd8e75e356656c153cad1", "normalized_at": "2026-06-20T05:17:39.182911Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_010271
CodeXGLUE Defect Detection
public_dataset
train
12807
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
void qpci_io_writeb(QPCIDevice *dev, void *data, uint8_t value) { uintptr_t addr = (uintptr_t)data; if (addr < QPCI_PIO_LIMIT) { dev->bus->pio_writeb(dev->bus, addr, value); } else { dev->bus->memwrite(dev->bus, addr, &value, sizeof(value)); } }
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": "b4ba67d9a702507793c2724e56f98e9b0f7be02b", "normalized_at": "2026-06-20T05:17:39.183911Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_017754
CodeXGLUE Defect Detection
public_dataset
train
22181
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
START_TEST(qdict_get_test) { QInt *qi; QObject *obj; const int value = -42; const char *key = "test"; qdict_put(tests_dict, key, qint_from_int(value)); obj = qdict_get(tests_dict, key); fail_unless(obj != NULL); qi = qobject_to_qint(obj); fail_unless(qint_get_int(qi) ...
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": "ac531cb6e542b1e61d668604adf9dc5306a948c0", "normalized_at": "2026-06-20T05:17:39.381279Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_015017
CodeXGLUE Defect Detection
public_dataset
train
18772
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static int mxf_read_source_clip(void *arg, AVIOContext *pb, int tag, int size, UID uid) { MXFStructuralComponent *source_clip = arg; switch(tag) { case 0x0202: source_clip->duration = avio_rb64(pb); break; case 0x1201: source_clip->start_position = avio_rb64(pb); ...
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": "fd34dbea58e097609ff09cf7dcc59f74930195d3", "normalized_at": "2026-06-20T05:17:39.304801Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_014281
CodeXGLUE Defect Detection
public_dataset
train
17829
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static int vble_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { VBLEContext *ctx = avctx->priv_data; AVFrame *pic = avctx->coded_frame; GetBitContext gb; const uint8_t *src = avpkt->data; int version; int offset = 0; int width_u...
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": "0b28abf903cd1fd61ba4a06009cd2cb7cc40e6e0", "normalized_at": "2026-06-20T05:17:39.285187Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_015442
CodeXGLUE Defect Detection
public_dataset
train
19305
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static int vfio_setup_pcie_cap(VFIOPCIDevice *vdev, int pos, uint8_t size, Error **errp) { uint16_t flags; uint8_t type; flags = pci_get_word(vdev->pdev.config + pos + PCI_CAP_FLAGS); type = (flags & PCI_EXP_FLAGS_TYPE) >> 4; if (type != PCI_EXP_TYPE_ENDPOIN...
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": "fd56e0612b6454a282fa6a953fdb09281a98c589", "normalized_at": "2026-06-20T05:17:39.315668Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_004250
CodeXGLUE Defect Detection
public_dataset
train
5257
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
av_cold int ff_MPV_encode_init(AVCodecContext *avctx) { MpegEncContext *s = avctx->priv_data; int i, ret; MPV_encode_defaults(s); switch (avctx->codec_id) { case AV_CODEC_ID_MPEG2VIDEO: if (avctx->pix_fmt != AV_PIX_FMT_YUV420P && avctx->pix_fmt != AV_PIX_FMT_YUV422P) ...
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": "f6774f905fb3cfdc319523ac640be30b14c1bc55", "normalized_at": "2026-06-20T05:17:39.032299Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_021572
CodeXGLUE Defect Detection
public_dataset
train
26967
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
uint64_t cpu_get_apic_base(DeviceState *d) { if (d) { APICCommonState *s = APIC_COMMON(d); trace_cpu_get_apic_base((uint64_t)s->apicbase); return s->apicbase; } else { trace_cpu_get_apic_base(0); 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": false, "project": "qemu", "commit_id": "dd673288a8ff73ad77fcc1c255486d2466a772e1", "normalized_at": "2026-06-20T05:17:39.484624Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_012439
CodeXGLUE Defect Detection
public_dataset
train
15484
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static int usb_audio_handle_data(USBDevice *dev, USBPacket *p) { USBAudioState *s = (USBAudioState *) dev; int ret = 0; switch (p->pid) { case USB_TOKEN_OUT: switch (p->devep) { case 1: ret = usb_audio_handle_dataout(s, p); break; default: ...
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": "079d0b7f1eedcc634c371fe05b617fdc55c8b762", "normalized_at": "2026-06-20T05:17:39.239415Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_020857
CodeXGLUE Defect Detection
public_dataset
train
26071
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static int cinepak_decode_strip (CinepakContext *s, cvid_strip *strip, const uint8_t *data, int size) { const uint8_t *eod = (data + size); int chunk_id, chunk_size; /* coordinate sanity checks */ if (strip->x1 >= s->width || strip->x2 > s->width || ...
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": "7056f13a89da1d1f4afd5c6342e7ca6824777125", "normalized_at": "2026-06-20T05:17:39.462189Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_002994
CodeXGLUE Defect Detection
public_dataset
train
3665
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
bool postcopy_ram_supported_by_host(void) { error_report("%s: No OS support", __func__); return 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": "d7651f150d61936344c4fab45eaeb0716c606af2", "normalized_at": "2026-06-20T05:17:39.000035Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_021355
CodeXGLUE Defect Detection
public_dataset
train
26700
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static int open_self_maps(void *cpu_env, int fd) { #if defined(TARGET_ARM) || defined(TARGET_M68K) || defined(TARGET_UNICORE32) CPUState *cpu = ENV_GET_CPU((CPUArchState *)cpu_env); TaskState *ts = cpu->opaque; #endif FILE *fp; char *line = NULL; size_t len = 0; ssize_t read; fp ...
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": "d67f4aaae8379b44b3b51ff07df75f693012983c", "normalized_at": "2026-06-20T05:17:39.477665Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_020120
CodeXGLUE Defect Detection
public_dataset
train
25158
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static void balloon_stats_get_all(Object *obj, Visitor *v, const char *name, void *opaque, Error **errp) { Error *err = NULL; VirtIOBalloon *s = opaque; int i; visit_start_struct(v, name, NULL, 0, &err); if (err) { goto out; } visit_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": "15c2f669e3fb2bc97f7b42d1871f595c0ac24af8", "normalized_at": "2026-06-20T05:17:39.444897Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_021700
CodeXGLUE Defect Detection
public_dataset
train
27128
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static uint32_t cmos_ioport_read(void *opaque, uint32_t addr) { RTCState *s = opaque; int ret; if ((addr & 1) == 0) { return 0xff; } else { switch(s->cmos_index) { case RTC_SECONDS: case RTC_MINUTES: case RTC_HOURS: case RTC_DAY_OF_WEEK: ...
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": "93b665693dd4afd32c89b0d5ee2b407b26a7a3bc", "normalized_at": "2026-06-20T05:17:39.489758Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_016637
CodeXGLUE Defect Detection
public_dataset
train
20791
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static void test_visitor_out_enum_errors(TestOutputVisitorData *data, const void *unused) { EnumOne i, bad_values[] = { ENUM_ONE__MAX, -1 }; Error *err; for (i = 0; i < ARRAY_SIZE(bad_values) ; i++) { err = NULL; visit_type_EnumOne(data->ov, ...
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:39.347972Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_020680
CodeXGLUE Defect Detection
public_dataset
train
25855
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
av_cold int vp56_free(AVCodecContext *avctx) { VP56Context *s = avctx->priv_data; int pt; av_freep(&s->qscale_table); av_freep(&s->above_blocks); av_freep(&s->macroblocks); av_freep(&s->edge_emu_buffer_alloc); if (s->framep[VP56_FRAME_GOLDEN]->data[0]) avctx->release_buffer(avctx, s-...
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": "0a41faa9a77dc83d8d933e99f1ba902ecd146e79", "normalized_at": "2026-06-20T05:17:39.457830Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_020973
CodeXGLUE Defect Detection
public_dataset
train
26214
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static av_cold void init_mv_penalty_and_fcode(MpegEncContext *s) { int f_code; int mv; for(f_code=1; f_code<=MAX_FCODE; f_code++){ for(mv=-MAX_MV; mv<=MAX_MV; mv++){ int len; if(mv==0) len= ff_mvtab[0][1]; else{ int val, bit_size, code...
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": "5b4da8a38a5ed211df9504c85ce401c30af86b97", "normalized_at": "2026-06-20T05:17:39.465234Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_009292
CodeXGLUE Defect Detection
public_dataset
train
11564
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
av_cold int ff_mpv_common_init(MpegEncContext *s) { int i; int nb_slices = (HAVE_THREADS && s->avctx->active_thread_type & FF_THREAD_SLICE) ? s->avctx->thread_count : 1; if (s->encoding && s->avctx->slices) nb_slices = s->avctx->slices; if (s-...
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": "f30a7d9861af884f352ec2484820a75d79a4e0e2", "normalized_at": "2026-06-20T05:17:39.158578Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_007384
CodeXGLUE Defect Detection
public_dataset
train
9168
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static QPCIDevice *get_device(void) { QPCIDevice *dev; QPCIBus *pcibus; pcibus = qpci_init_pc(); dev = NULL; qpci_device_foreach(pcibus, 0x1af4, 0x1110, save_fn, &dev); g_assert(dev != NULL); return 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": true, "project": "qemu", "commit_id": "1760048a5d21bacf0e4838da2f61b2d8db7d2866", "normalized_at": "2026-06-20T05:17:39.112116Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_001807
CodeXGLUE Defect Detection
public_dataset
train
2206
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static int dnxhd_decode_header(DNXHDContext *ctx, AVFrame *frame, const uint8_t *buf, int buf_size, int first_field) { static const uint8_t header_prefix[] = { 0x00, 0x00, 0x02, 0x80, 0x01 }; static const uint8_t header_prefix444[] = { 0x00, ...
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": "cea9eb9520fab9e5ec79d3a2d4dbd03eb71b7fa3", "normalized_at": "2026-06-20T05:17:38.966014Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_008235
CodeXGLUE Defect Detection
public_dataset
train
10247
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
void bdrv_set_dirty_bitmap(BdrvDirtyBitmap *bitmap, int64_t cur_sector, int64_t nr_sectors) { assert(bdrv_dirty_bitmap_enabled(bitmap)); hbitmap_set(bitmap->bitmap, cur_sector, nr_sectors); }
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": "b64bd51efa9bbf30df1b2f91477d2805678d0b93", "normalized_at": "2026-06-20T05:17:39.131822Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_002982
CodeXGLUE Defect Detection
public_dataset
train
3651
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static inline uint8_t *bt_hci_event_start(struct bt_hci_s *hci, int evt, int len) { uint8_t *packet, mask; int mask_byte; if (len > 255) { fprintf(stderr, "%s: HCI event params too long (%ib)\n", __FUNCTION__, len); exit(-1); } ma...
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": "a89f364ae8740dfc31b321eed9ee454e996dc3c1", "normalized_at": "2026-06-20T05:17:38.999897Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_007971
CodeXGLUE Defect Detection
public_dataset
train
9931
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
int load_aout(const char *filename, target_phys_addr_t addr, int max_sz, int bswap_needed, target_phys_addr_t target_page_size) { int fd, size, ret; struct exec e; uint32_t magic; fd = open(filename, O_RDONLY | O_BINARY); if (fd < 0) return -1; size = read(fd, ...
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": "725e14e91f80b6b2c07b75b66b7b042a9fa9340c", "normalized_at": "2026-06-20T05:17:39.126075Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_003245
CodeXGLUE Defect Detection
public_dataset
train
3975
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
void error_set_win32(Error **errp, int win32_err, ErrorClass err_class, const char *fmt, ...) { va_list ap; char *msg1, *msg2; if (errp == NULL) { return; } va_start(ap, fmt); error_setv(errp, err_class, fmt, ap); va_end(ap); if (win32_err !=...
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": "e7cf59e84767e30b507b6bd7c1347072ec12b636", "normalized_at": "2026-06-20T05:17:39.006958Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_015776
CodeXGLUE Defect Detection
public_dataset
train
19713
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static void mb_cpu_class_init(ObjectClass *oc, void *data) { DeviceClass *dc = DEVICE_CLASS(oc); CPUClass *cc = CPU_CLASS(oc); MicroBlazeCPUClass *mcc = MICROBLAZE_CPU_CLASS(oc); mcc->parent_realize = dc->realize; dc->realize = mb_cpu_realizefn; mcc->parent_reset = cc->reset; cc->reset = mb_...
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": "4c315c27661502a0813b129e41c0bf640c34a8d6", "normalized_at": "2026-06-20T05:17:39.325408Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_018120
CodeXGLUE Defect Detection
public_dataset
train
22635
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static int cinvideo_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; CinVideoContext *cin = avctx->priv_data; int i, y, palette_type, p...
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": "8e5f093c2cf13eab3d68d893bf8f30c56ba4e733", "normalized_at": "2026-06-20T05:17:39.391293Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_021600
CodeXGLUE Defect Detection
public_dataset
train
27004
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static void kzm_init(MachineState *machine) { IMX31KZM *s = g_new0(IMX31KZM, 1); unsigned int ram_size; unsigned int alias_offset; unsigned int i; object_initialize(&s->soc, sizeof(s->soc), TYPE_FSL_IMX31); object_property_add_child(OBJECT(machine), "soc", OBJECT(&s->soc), ...
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": "3dc6f8693694a649a9c83f1e2746565b47683923", "normalized_at": "2026-06-20T05:17:39.485538Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_015322
CodeXGLUE Defect Detection
public_dataset
train
19152
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static void vfio_rtl8168_window_quirk_write(void *opaque, hwaddr addr, uint64_t data, unsigned size) { VFIOQuirk *quirk = opaque; VFIOPCIDevice *vdev = quirk->vdev; switch (addr) { case 4: /* address */ if ((data & 0x7fff0000) == 0x10000) { ...
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": "d451008e0fdf7fb817c791397e7999d5f3687e58", "normalized_at": "2026-06-20T05:17:39.312428Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_015100
CodeXGLUE Defect Detection
public_dataset
train
18873
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
void cpu_outb(pio_addr_t addr, uint8_t val) { LOG_IOPORT("outb: %04"FMT_pioaddr" %02"PRIx8"\n", addr, val); trace_cpu_out(addr, val); ioport_write(0, addr, 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": "b40acf99bef69fa8ab0f9092ff162fde945eec12", "normalized_at": "2026-06-20T05:17:39.306909Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_018858
CodeXGLUE Defect Detection
public_dataset
train
23561
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
DECL_IMDCT_BLOCKS(sse,sse) DECL_IMDCT_BLOCKS(sse2,sse) DECL_IMDCT_BLOCKS(sse3,sse) DECL_IMDCT_BLOCKS(ssse3,sse) DECL_IMDCT_BLOCKS(avx,avx) #endif /* HAVE_YASM */ void ff_mpadsp_init_mmx(MPADSPContext *s) { int mm_flags = av_get_cpu_flags(); int i, j; for (j = 0; j < 4; j++) { for (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": false, "project": "FFmpeg", "commit_id": "e0c6cce44729d94e2a5507a4b6d031f23e8bd7b6", "normalized_at": "2026-06-20T05:17:39.410132Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_019996
CodeXGLUE Defect Detection
public_dataset
train
25009
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static int qcow_create2(const char *filename, int64_t total_size, const char *backing_file, const char *backing_format, int flags, size_t cluster_size, int prealloc) { int fd, header_size, backing_filename_len, l1_size, i, shift, l2_bits; int ref_clusters, ...
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": "e1c7f0e3f998866bedc9bdb53d247859b7beb5ce", "normalized_at": "2026-06-20T05:17:39.441997Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_012011
CodeXGLUE Defect Detection
public_dataset
train
14952
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
av_cold void ff_gradfun_init_x86(GradFunContext *gf) { int cpu_flags = av_get_cpu_flags(); if (HAVE_MMX2 && cpu_flags & AV_CPU_FLAG_MMX2) gf->filter_line = gradfun_filter_line_mmx2; if (HAVE_SSSE3 && cpu_flags & AV_CPU_FLAG_SSSE3) gf->filter_line = gradfun_filter_line_ssse3; if ...
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": "fb93e61e2b7baa44ff991bc0ce96291490a0188e", "normalized_at": "2026-06-20T05:17:39.228873Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
owasp_python_001030
OWASP Benchmark Python
public_dataset
processed
1030
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/BenchmarkTest01030.py", "label_source": "data/raw/owasp_benchmark_python/expectedresults-0.1.csv", "normalized_at": "2026-06-20T05:21:00.726422Z", "name_fixed_at": "2026-06-20T05:22:49.841349Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_010724
CodeXGLUE Defect Detection
public_dataset
train
13370
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static uint64_t omap_mpuio_read(void *opaque, target_phys_addr_t addr, unsigned size) { struct omap_mpuio_s *s = (struct omap_mpuio_s *) opaque; int offset = addr & OMAP_MPUI_REG_MASK; uint16_t ret; if (size != 2) { return omap_badwidth_read16(opaque, add...
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.195892Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_006830
CodeXGLUE Defect Detection
public_dataset
train
8505
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static void *circular_buffer_task_tx( void *_URLContext) { URLContext *h = _URLContext; UDPContext *s = h->priv_data; int old_cancelstate; pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, &old_cancelstate); for(;;) { int len; uint8_t tmp[4]; pthread_setcancelstat...
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": "9b7a8bddac52bd05dddb28afd4dff92739946d3b", "normalized_at": "2026-06-20T05:17:39.097786Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }