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_021189
CodeXGLUE Defect Detection
public_dataset
train
26490
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static int sys_utimensat(int dirfd, const char *pathname, const struct timespec times[2], int flags) { return (utimensat(dirfd, pathname, times, 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": "ebc996f3b13004e7272c462254522ba0102f09fe", "normalized_at": "2026-06-20T05:17:39.472624Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_021303
CodeXGLUE Defect Detection
public_dataset
train
26637
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static int mjpegb_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; MJpegDecodeContext *s = avctx->priv_data; const uint8_t *buf_end, *buf_ptr...
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": "2884688bd51a808ccda3c0e13367619cd79e0579", "normalized_at": "2026-06-20T05:17:39.475816Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_004813
CodeXGLUE Defect Detection
public_dataset
train
5971
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static void test_butterflies_float(const float *src0, const float *src1) { LOCAL_ALIGNED_16(float, cdst, [LEN]); LOCAL_ALIGNED_16(float, odst, [LEN]); LOCAL_ALIGNED_16(float, cdst1, [LEN]); LOCAL_ALIGNED_16(float, odst1, [LEN]); int i; declare_func(void, float *av_restrict src0, f...
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": "a579dbb4f7deee142d1bb6545a169c9fcaa467af", "normalized_at": "2026-06-20T05:17:39.046105Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_018753
CodeXGLUE Defect Detection
public_dataset
train
23435
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static void print_formats(AVFilterContext *filter_ctx) { int i, j; #define PRINT_FMTS(inout, outin, INOUT) \ for (i = 0; i < filter_ctx->nb_##inout##puts; i++) { \ if (filter_ctx->inout##puts[i]->type == AVMEDIA_TYPE_VIDEO) { \ 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": "59c7615d58b5b7ea9caff2c8c774677973eb4f1c", "normalized_at": "2026-06-20T05:17:39.407401Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_001285
CodeXGLUE Defect Detection
public_dataset
train
1581
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
void copy_picture_field(TInterlaceContext *tinterlace, uint8_t *dst[4], int dst_linesize[4], const uint8_t *src[4], int src_linesize[4], enum AVPixelFormat format, int w, int src_h, int src_field, int interleave, int dst...
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": "3af1060319b46005dbfb3b01f9104539caf30146", "normalized_at": "2026-06-20T05:17:38.952493Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_016799
CodeXGLUE Defect Detection
public_dataset
train
20989
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
int bdrv_is_allocated_above(BlockDriverState *top, BlockDriverState *base, int64_t sector_num, int nb_sectors, int *pnum) { BlockDriverState *intermediate; int ret, n = nb_sectors; intermediate = top; while (in...
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": "61007b316cd71ee7333ff7a0a749a8949527575f", "normalized_at": "2026-06-20T05:17:39.352287Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_004415
CodeXGLUE Defect Detection
public_dataset
train
5466
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static void nvdimm_build_ssdt(GSList *device_list, GArray *table_offsets, GArray *table_data, BIOSLinker *linker, GArray *dsm_dma_arrea) { Aml *ssdt, *sb_scope, *dev; int mem_addr_offset, nvdimm_ssdt; acpi_add_table(table_offsets, table_dat...
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": "bdfd065b1f75cacca21af0b8d4811c64cc48d04c", "normalized_at": "2026-06-20T05:17:39.036207Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_005280
CodeXGLUE Defect Detection
public_dataset
train
6554
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static void test_blk_read(BlockBackend *blk, long pattern, int64_t pattern_offset, int64_t pattern_count, int64_t offset, int64_t count, bool expect_failed) { void *pattern_buf = NULL; QEMUIOVector qiov; void *cmp_buf = NUL...
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": "baf905e580ab9c8eaf228822c4a7b257493b4998", "normalized_at": "2026-06-20T05:17:39.058383Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_019411
CodeXGLUE Defect Detection
public_dataset
train
24252
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static inline void set_p_mv_tables(MpegEncContext * s, int mx, int my) { const int xy= s->mb_x + 1 + (s->mb_y + 1)*(s->mb_width + 2); s->p_mv_table[xy][0] = mx; s->p_mv_table[xy][1] = my; /* has allready been set to the 4 MV if 4MV is done */ if(!(s->flags&CODEC_FLAG_4MV)){ in...
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": "0d21a84605bad4e75dacb8196e5859902ed36f01", "normalized_at": "2026-06-20T05:17:39.426457Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_018793
CodeXGLUE Defect Detection
public_dataset
train
23481
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static int qemu_event_init(void) { int err; int fds[2]; err = pipe(fds); if (err == -1) return -errno; err = fcntl_setfl(fds[0], O_NONBLOCK); if (err < 0) goto fail; err = fcntl_setfl(fds[1], O_NONBLOCK); if (err < 0) goto fail; qemu_set_f...
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": "40ff6d7e8dceca227e7f8a3e8e0d58b2c66d19b4", "normalized_at": "2026-06-20T05:17:39.408587Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_004191
CodeXGLUE Defect Detection
public_dataset
train
5183
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static int wavpack_encode_block(WavPackEncodeContext *s, int32_t *samples_l, int32_t *samples_r, uint8_t *out, int out_size) { int block_size, start, end, data_size, tcount, temp, m = 0; int i, j, ret = 0, got_extra = 0, nb_samples = s->block_...
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": "e32eddaa51ad6e84ce9592b9634a788fcda9bad3", "normalized_at": "2026-06-20T05:17:39.030695Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_001414
CodeXGLUE Defect Detection
public_dataset
train
1732
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static void usb_msd_command_complete(SCSIBus *bus, int reason, uint32_t tag, uint32_t arg) { MSDState *s = DO_UPCAST(MSDState, dev.qdev, bus->qbus.parent); USBPacket *p = s->packet; if (tag != s->tag) { fprintf(stderr, "usb-msd: Unexpected SCSI Tag 0x%x\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": true, "project": "qemu", "commit_id": "5c6c0e513600ba57c3e73b7151d3c0664438f7b5", "normalized_at": "2026-06-20T05:17:38.955822Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_007985
CodeXGLUE Defect Detection
public_dataset
train
9947
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static int tight_palette_insert(QDict *palette, uint32_t rgb, int bpp, int max) { uint8_t key[6]; int idx = qdict_size(palette); bool present; tight_palette_rgb2buf(rgb, bpp, key); present = qdict_haskey(palette, (char *)key); if (idx >= max && !present) { 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": "245f7b51c0ea04fb2224b1127430a096c91aee70", "normalized_at": "2026-06-20T05:17:39.126343Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_000736
CodeXGLUE Defect Detection
public_dataset
train
905
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
av_cold int ff_h264_decode_init(AVCodecContext *avctx) { H264Context *h = avctx->priv_data; int ret; ret = h264_init_context(avctx, h); if (ret < 0) return ret; memset(h->pps.scaling_matrix4, 16, 6 * 16 * sizeof(uint8_t)); memset(h->pps.scaling_matrix8, 16, 2 * 64 * sizeof(ui...
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": "65afa65e7393e7745427e267d6c6ca814c7c8b45", "normalized_at": "2026-06-20T05:17:38.935570Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
owasp_python_000823
OWASP Benchmark Python
public_dataset
processed
823
python
generic
security_review
CWE-90
A03: Injection
medium
true
LDAP 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-90" ]
{ "raw_path": "testcode/BenchmarkTest00823.py", "label_source": "data/raw/owasp_benchmark_python/expectedresults-0.1.csv", "normalized_at": "2026-06-20T05:21:00.716827Z", "name_fixed_at": "2026-06-20T05:22:49.839044Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_005284
CodeXGLUE Defect Detection
public_dataset
train
6560
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static int protocol_client_auth_sasl_step(VncState *vs, uint8_t *data, size_t len) { uint32_t datalen = len; const char *serverout; unsigned int serveroutlen; int err; char *clientdata = NULL; /* NB, distinction of NULL vs "" is *critical* in SASL */ if (datalen) { clientd...
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": "7364dbdabb7824d5bde1e341bb6d928282f01c83", "normalized_at": "2026-06-20T05:17:39.058545Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_019360
CodeXGLUE Defect Detection
public_dataset
train
24182
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static int process_cc608(CCaptionSubContext *ctx, int64_t pts, uint8_t hi, uint8_t lo) { int ret = 0; #define COR3(var, with1, with2, with3) ( (var) == (with1) || (var) == (with2) || (var) == (with3) ) if ( hi == ctx->prev_cmd[0] && lo == ctx->prev_cmd[1]) { /* ignore redundant command */ } 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": false, "project": "FFmpeg", "commit_id": "229843aa359ae0c9519977d7fa952688db63f559", "normalized_at": "2026-06-20T05:17:39.425339Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_006905
CodeXGLUE Defect Detection
public_dataset
train
8596
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static int sab_diamond_search(MpegEncContext * s, int *best, int dmin, int src_index, int ref_index, int const penalty_factor, int size, int h, int flags) { MotionEstContext * const c= &s->me; me_cmp_func cmpf, chroma_cmpf; ...
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": "11b563ed8f7c1a9183ba77680d9040fc384733d5", "normalized_at": "2026-06-20T05:17:39.100002Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_021347
CodeXGLUE Defect Detection
public_dataset
train
26692
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
int ff_dxva2_commit_buffer(AVCodecContext *avctx, AVDXVAContext *ctx, DECODER_BUFFER_DESC *dsc, unsigned type, const void *data, unsigned size, unsigned mb_count) { void *dxva_data; unsigned dx...
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": "7ed5d78d619e45b46ba003e8014767b05b73b7d2", "normalized_at": "2026-06-20T05:17:39.476856Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_015690
CodeXGLUE Defect Detection
public_dataset
train
19605
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static void gen_rfi(DisasContext *ctx) { #if defined(CONFIG_USER_ONLY) gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC); #else /* FIXME: This instruction doesn't exist anymore on 64-bit server * processors compliant with arch 2.x, we should remove it there, * but we need to fix OpenBIOS not to 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": "qemu", "commit_id": "9b2fadda3e0196ffd485adde4fe9cdd6fae35300", "normalized_at": "2026-06-20T05:17:39.322095Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_015779
CodeXGLUE Defect Detection
public_dataset
train
19717
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static void print_report(int is_last_report, int64_t timer_start) { char buf[1024]; OutputStream *ost; AVFormatContext *oc; int64_t total_size; AVCodecContext *enc; int frame_number, vid, i; double bitrate, ti1, pts; static int64_t last_time = -1; static int qp_histogram[52...
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": "5c79d2e12d13959fc6aed92d102c25194a06de05", "normalized_at": "2026-06-20T05:17:39.325498Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_003714
CodeXGLUE Defect Detection
public_dataset
train
4562
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static inline int onenand_prog_spare(OneNANDState *s, int sec, int secn, void *src) { int result = 0; if (secn > 0) { const uint8_t *sp = (const uint8_t *)src; uint8_t *dp = 0, *dpp = 0; if (s->bdrv_cur) { dp = g_malloc(512); if (!dp || bd...
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.018921Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_010821
CodeXGLUE Defect Detection
public_dataset
train
13492
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static void h264_v_loop_filter_luma_c(uint8_t *pix, int stride, int alpha, int beta, int8_t *tc0) { h264_loop_filter_luma_c(pix, stride, 1, alpha, beta, tc0); }
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": "dd561441b1e849df7d8681c6f32af82d4088dafd", "normalized_at": "2026-06-20T05:17:39.197859Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_013587
CodeXGLUE Defect Detection
public_dataset
train
16939
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static target_ulong h_bulk_remove(PowerPCCPU *cpu, sPAPRMachineState *spapr, target_ulong opcode, target_ulong *args) { CPUPPCState *env = &cpu->env; int i; target_ulong rc = H_SUCCESS; for (i = 0; i < H_BULK_REMOVE_MAX_BATCH; i++) { target_ulong *tsh =...
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": "e3cffe6fad29e07d401eabb913a6d88501d5c143", "normalized_at": "2026-06-20T05:17:39.267675Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_007548
CodeXGLUE Defect Detection
public_dataset
train
9379
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static void uhci_async_cancel_all(UHCIState *s) { UHCIQueue *queue; UHCIAsync *curr, *n; QTAILQ_FOREACH(queue, &s->queues, next) { QTAILQ_FOREACH_SAFE(curr, &queue->asyncs, next, n) { uhci_async_unlink(curr); uhci_async_cancel(curr); } uhci_queue_fr...
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": "77fa9aee38758a078870e25f0dcf642066b4d5cc", "normalized_at": "2026-06-20T05:17:39.115805Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_003878
CodeXGLUE Defect Detection
public_dataset
train
4778
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static void audio_pp_nb_voices (const char *typ, int nb) { switch (nb) { case 0: printf ("Does not support %s\n", typ); break; case 1: printf ("One %s voice\n", typ); break; case INT_MAX: printf ("Theoretically supports many %s voices\n", 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": "e7d81004e486b0e80a674d164d8aec0e83fa812f", "normalized_at": "2026-06-20T05:17:39.022996Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_019728
CodeXGLUE Defect Detection
public_dataset
train
24667
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
int qed_check(BDRVQEDState *s, BdrvCheckResult *result, bool fix) { QEDCheck check = { .s = s, .result = result, .nclusters = qed_bytes_to_clusters(s, s->file_size), .request = { .l2_table = NULL }, .fix = fix, }; int ret; check.used_clusters = g_try_m...
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": "02c4f26b1517d9e403ec10d6f6ca3c0276d19e43", "normalized_at": "2026-06-20T05:17:39.434822Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_011870
CodeXGLUE Defect Detection
public_dataset
train
14767
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
void net_client_uninit(NICInfo *nd) { nd->vlan->nb_guest_devs--; nb_nics--; nd->used = 0; free((void *)nd->model); }
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": "a9796703447fc5c5691b749915f0f627f47f05a9", "normalized_at": "2026-06-20T05:17:39.225729Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_005157
CodeXGLUE Defect Detection
public_dataset
train
6397
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static void qmp_output_end_struct(Visitor *v, Error **errp) { QmpOutputVisitor *qov = to_qov(v); qmp_output_pop(qov); }
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": "56a6f02b8ce1fe41a2a9077593e46eca7d98267d", "normalized_at": "2026-06-20T05:17:39.055545Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_006125
CodeXGLUE Defect Detection
public_dataset
train
7618
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
void kvm_ioapic_dump_state(Monitor *mon, const QDict *qdict) { IOAPICCommonState s; kvm_ioapic_get(&s); ioapic_print_redtbl(mon, &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": "c6fcb0e201ad296a9c0f587486830d9508094efb", "normalized_at": "2026-06-20T05:17:39.080246Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_004924
CodeXGLUE Defect Detection
public_dataset
train
6116
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static av_cold int concat_open(URLContext *h, const char *uri, int flags) { char *node_uri = NULL; int err = 0; int64_t size; size_t len, i; URLContext *uc; struct concat_data *data = h->priv_data; struct concat_nodes *nodes; av_strstart(uri, "concat:", &uri); 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": true, "project": "FFmpeg", "commit_id": "ad2a08388c82bdec5ac9355ca6e0bc4c98b26423", "normalized_at": "2026-06-20T05:17:39.048813Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_006931
CodeXGLUE Defect Detection
public_dataset
train
8627
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static int kvm_physical_sync_dirty_bitmap(MemoryRegionSection *section) { KVMState *s = kvm_state; unsigned long size, allocated_size = 0; KVMDirtyLog d; KVMSlot *mem; int ret = 0; hwaddr start_addr = section->offset_within_address_space; hwaddr end_addr = start_addr + int128_get64(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": "d229b985b504261369f2035936cc147c2606fa92", "normalized_at": "2026-06-20T05:17:39.100477Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_009202
CodeXGLUE Defect Detection
public_dataset
train
11453
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static int old_codec47(SANMVideoContext *ctx, int top, int left, int width, int height) { int i, j, seq, compr, new_rot, tbl_pos, skip; int stride = ctx->pitch; uint8_t *dst = ((uint8_t*)ctx->frm0) + left + top * stride; uint8_t *prev1 = (uint8_t*)ctx->frm1; uint8_t *pre...
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": "7357ca900efcf829de4cce4cec6ddc286526d417", "normalized_at": "2026-06-20T05:17:39.156312Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_016861
CodeXGLUE Defect Detection
public_dataset
train
21072
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
struct pxa2xx_gpio_info_s *pxa2xx_gpio_init(target_phys_addr_t base, CPUState *env, qemu_irq *pic, int lines) { int iomemtype; struct pxa2xx_gpio_info_s *s; s = (struct pxa2xx_gpio_info_s *) qemu_mallocz(sizeof(struct pxa2xx_gpio_info_s)); memset(s, 0, sizeof(struct ...
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": "187337f8b0ec0813dd3876d1efe37d415fb81c2e", "normalized_at": "2026-06-20T05:17:39.353377Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_002527
CodeXGLUE Defect Detection
public_dataset
train
3079
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static int bmp_decode_frame(AVCodecContext *avctx, void *data, int *data_size, const uint8_t *buf, int buf_size) { BMPContext *s = avctx->priv_data; AVFrame *picture = data; AVFrame *p = &s->picture; unsigned int fsize, hsize; int 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": "c5b2fe165a31f0319d55a14a92cbac2e0e0b95fc", "normalized_at": "2026-06-20T05:17:38.986419Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_007537
CodeXGLUE Defect Detection
public_dataset
train
9367
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static void multipath_pr_init(void) { static struct udev *udev; udev = udev_new(); mpath_lib_init(udev); }
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": "b3f1c8c413bc83e4a2cc7a63e4eddf9fe6449052", "normalized_at": "2026-06-20T05:17:39.115639Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_005427
CodeXGLUE Defect Detection
public_dataset
train
6742
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
void op_dmtc0_ebase (void) { /* vectored interrupts not implemented */ /* Multi-CPU not implemented */ /* XXX: 64bit addressing broken */ env->CP0_EBase = (int32_t)0x80000000 | (T0 & 0x3FFFF000); 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": "b29a0341d7ed7e7df4bf77a41db8e614f1ddb645", "normalized_at": "2026-06-20T05:17:39.062260Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_014415
CodeXGLUE Defect Detection
public_dataset
train
17997
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static int build_feed_streams(void) { FFServerStream *stream, *feed; int i; /* gather all streams */ for(stream = config.first_stream; stream; stream = stream->next) { feed = stream->feed; if (!feed) continue; if (stream->is_feed) { for(i=0;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": "ae2ed20b5912b00866631e78049f165deb9f2fb2", "normalized_at": "2026-06-20T05:17:39.288377Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_004554
CodeXGLUE Defect Detection
public_dataset
train
5639
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static uint64_t softusb_read(void *opaque, target_phys_addr_t addr, unsigned size) { MilkymistSoftUsbState *s = opaque; uint32_t r = 0; addr >>= 2; switch (addr) { case R_CTRL: r = s->regs[addr]; break; default: error_report("mi...
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.039689Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_016445
CodeXGLUE Defect Detection
public_dataset
train
20551
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static int scsi_generic_initfn(SCSIDevice *dev) { SCSIGenericState *s = DO_UPCAST(SCSIGenericState, qdev, dev); int sg_version; struct sg_scsi_id scsiid; if (!s->qdev.conf.dinfo || !s->qdev.conf.dinfo->bdrv) { error_report("scsi-generic: drive property not set"); 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": "f8b6cc0070aab8b75bd082582c829be1353f395f", "normalized_at": "2026-06-20T05:17:39.343054Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
owasp_python_000555
OWASP Benchmark Python
public_dataset
processed
555
python
generic
security_review
CWE-643
A03: Injection
high
true
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/BenchmarkTest00555.py", "label_source": "data/raw/owasp_benchmark_python/expectedresults-0.1.csv", "normalized_at": "2026-06-20T05:21:00.704715Z", "name_fixed_at": "2026-06-20T05:22:49.834681Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_020528
CodeXGLUE Defect Detection
public_dataset
train
25662
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static int celt_header(AVFormatContext *s, int idx) { struct ogg *ogg = s->priv_data; struct ogg_stream *os = ogg->streams + idx; AVStream *st = s->streams[idx]; struct oggcelt_private *priv = os->private; uint8_t *p = os->buf + os->pstart; if (os->psize == 60 && !memcmp(p, ff_...
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": "7140761481e4296723a592019a0244ebe6c1a8cf", "normalized_at": "2026-06-20T05:17:39.454329Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_015798
CodeXGLUE Defect Detection
public_dataset
train
19741
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static int svq1_decode_block_intra(GetBitContext *bitbuf, uint8_t *pixels, ptrdiff_t pitch) { uint32_t bit_cache; uint8_t *list[63]; uint32_t *dst; const uint32_t *codebook; int entries[6]; int i, j, m, n; int stages; unsigned mean; unsig...
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": "aed84ee4d1b0c9e315a84b1ee0918fa49ee9cc09", "normalized_at": "2026-06-20T05:17:39.326404Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_015954
CodeXGLUE Defect Detection
public_dataset
train
19930
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
void ga_command_state_init(GAState *s, GACommandState *cs) { if (vss_init(true)) { ga_command_state_add(cs, NULL, guest_fsfreeze_cleanup); } }
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": "1281c08a46df94a66acca140bafc1785c0fcd47f", "normalized_at": "2026-06-20T05:17:39.330353Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_011307
CodeXGLUE Defect Detection
public_dataset
train
14077
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static void os_host_main_loop_wait(int *timeout) { int ret, ret2, i; PollingEntry *pe; /* XXX: need to suppress polling by better using win32 events */ ret = 0; for (pe = first_polling_entry; pe != NULL; pe = pe->next) { ret |= pe->func(pe->opaque); } if (ret == 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": "15455536df5ef652759ccf465d5e6f73acb493df", "normalized_at": "2026-06-20T05:17:39.211436Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_011564
CodeXGLUE Defect Detection
public_dataset
train
14398
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static always_inline void gen_excp (DisasContext *ctx, int exception, int error_code) { TCGv tmp1, tmp2; tcg_gen_movi_i64(cpu_pc, ctx->pc); tmp1 = tcg_const_i32(exception); tmp2 = tcg_const_i32(error_code); tcg_gen_helper_0_2(helper_excp, tmp1, tmp2); ...
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.218092Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_013299
CodeXGLUE Defect Detection
public_dataset
train
16571
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static void av_always_inline filter_mb_mbaff_edgecv( H264Context *h, uint8_t *pix, int stride, const int16_t bS[7], int bsi, int qp, int intra ) { const int qp_bd_offset = 6 * (h->sps.bit_depth_luma - 8); int index_a = qp - qp_bd_offset + h->slice_alpha_c0_offset; int alpha = alpha_table[index_a]; 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": "f6b7f72461673e4d398b1edf9ed2a7fe70d99c47", "normalized_at": "2026-06-20T05:17:39.260871Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_016921
CodeXGLUE Defect Detection
public_dataset
train
21142
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
BlockDriverAIOCB *bdrv_aio_flush(BlockDriverState *bs, BlockDriverCompletionFunc *cb, void *opaque) { BlockDriver *drv = bs->drv; if (!drv) return NULL; return drv->bdrv_aio_flush(bs, cb, 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": true, "project": "qemu", "commit_id": "016f5cf6ff465411733878a17c8f8febb7668321", "normalized_at": "2026-06-20T05:17:39.354728Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_007304
CodeXGLUE Defect Detection
public_dataset
train
9068
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static void msix_table_mmio_write(void *opaque, target_phys_addr_t addr, uint64_t val, unsigned size) { PCIDevice *dev = opaque; int vector = addr / PCI_MSIX_ENTRY_SIZE; bool was_masked; was_masked = msix_is_masked(dev, vector); pci_set_long(dev->msix_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": false, "project": "qemu", "commit_id": "a8170e5e97ad17ca169c64ba87ae2f53850dab4c", "normalized_at": "2026-06-20T05:17:39.109787Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_012332
CodeXGLUE Defect Detection
public_dataset
train
15357
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static void do_transmit_packets(dp8393xState *s) { uint16_t data[12]; int width, size; int tx_len, len; uint16_t i; width = (s->regs[SONIC_DCR] & SONIC_DCR_DW) ? 2 : 1; while (1) { /* Read memory */ DPRINTF("Transmit packet at %08x\n", (s->regs[SONIC...
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": "e3f5ec2b5e92706e3b807059f79b1fb5d936e567", "normalized_at": "2026-06-20T05:17:39.237263Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_008244
CodeXGLUE Defect Detection
public_dataset
train
10257
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static int pci_pbm_init_device(SysBusDevice *dev) { APBState *s; int pci_mem_config, pci_mem_data, apb_config, pci_ioport; s = FROM_SYSBUS(APBState, dev); /* apb_config */ apb_config = cpu_register_io_memory(apb_config_read, apb_config_write, 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": "4f5e19e6c570459cd524b29b24374f03860f5149", "normalized_at": "2026-06-20T05:17:39.131926Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_016931
CodeXGLUE Defect Detection
public_dataset
train
21153
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static void aw_a10_class_init(ObjectClass *oc, void *data) { DeviceClass *dc = DEVICE_CLASS(oc); dc->realize = aw_a10_realize; }
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.355749Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_002551
CodeXGLUE Defect Detection
public_dataset
train
3107
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static uint64_t imx_serial_read(void *opaque, hwaddr offset, unsigned size) { IMXSerialState *s = (IMXSerialState *)opaque; uint32_t c; DPRINTF("read(offset=%x)\n", offset >> 2); switch (offset >> 2) { case 0x0: /* URXD */ c = s->readbuff; 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": "f7a6785e12d834d05200b0595070db453344b25d", "normalized_at": "2026-06-20T05:17:38.986914Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_019258
CodeXGLUE Defect Detection
public_dataset
train
24052
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static void cpu_debug_handler(CPUState *env) { gdb_set_stop_cpu(env); qemu_system_debug_request(); }
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": "83f338f73ecb88cc6f85d6e7b81ebef112ce07be", "normalized_at": "2026-06-20T05:17:39.422386Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_011971
CodeXGLUE Defect Detection
public_dataset
train
14900
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static int QEMU_WARN_UNUSED_RESULT update_refcount(BlockDriverState *bs, int64_t offset, int64_t length, uint64_t addend, ...
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": "a3f1afb43a09e4577571c044c48f2ba9e6e4ad06", "normalized_at": "2026-06-20T05:17:39.228055Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_012404
CodeXGLUE Defect Detection
public_dataset
train
15441
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static inline uint8_t *get_seg_base(uint32_t e1, uint32_t e2) { return (uint8_t *)((e1 >> 16) | ((e2 & 0xff) << 16) | (e2 & 0xff000000)); }
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": "7e84c2498f0ff3999937d18d1e9abaa030400000", "normalized_at": "2026-06-20T05:17:39.238651Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_012343
CodeXGLUE Defect Detection
public_dataset
train
15370
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static CharDriverState *net_vhost_parse_chardev( const NetdevVhostUserOptions *opts, Error **errp) { CharDriverState *chr = qemu_chr_find(opts->chardev); VhostUserChardevProps props; if (chr == NULL) { error_setg(errp, "chardev \"%s\" not found", opts->chardev); 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": true, "project": "qemu", "commit_id": "0a73336d96397c80881219d080518fac6f1ecacb", "normalized_at": "2026-06-20T05:17:39.237444Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_005697
CodeXGLUE Defect Detection
public_dataset
train
7077
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static int upload_texture(SDL_Texture *tex, AVFrame *frame, struct SwsContext **img_convert_ctx) { int ret = 0; switch (frame->format) { case AV_PIX_FMT_YUV420P: if (frame->linesize[0] < 0 || frame->linesize[1] < 0 || frame->linesize[2] < 0) { av_log(NULL, AV_LOG_ERROR, ...
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": "493f637d1e933ebdd9f63528a7782d3617c442cb", "normalized_at": "2026-06-20T05:17:39.070131Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_018684
CodeXGLUE Defect Detection
public_dataset
train
23338
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
void cpu_loop(CPUMBState *env) { int trapnr, ret; target_siginfo_t info; while (1) { trapnr = cpu_mb_exec (env); switch (trapnr) { case 0xaa: { info.si_signo = SIGSEGV; info.si_errno = 0; /* XXX: check 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": true, "project": "qemu", "commit_id": "d7dce494769e47c9a1eec6f55578d3acdfab888b", "normalized_at": "2026-06-20T05:17:39.405810Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_017838
CodeXGLUE Defect Detection
public_dataset
train
22286
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static void pc_compat_2_1(MachineState *machine) { PCMachineState *pcms = PC_MACHINE(machine); pc_compat_2_2(machine); pcms->enforce_aligned_dimm = false; smbios_uuid_encoded = false; x86_cpu_change_kvm_default("svm", 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": "7102fa7073b2cefb33ab4012a11f15fbf297a74b", "normalized_at": "2026-06-20T05:17:39.384250Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_018961
CodeXGLUE Defect Detection
public_dataset
train
23687
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
MemoryRegion *pci_address_space_io(PCIDevice *dev) { return dev->bus->address_space_io; }
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.413056Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_008629
CodeXGLUE Defect Detection
public_dataset
train
10745
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static int tta_read_seek(AVFormatContext *s, int stream_index, int64_t timestamp, int flags) { TTAContext *c = s->priv_data; AVStream *st = s->streams[stream_index]; int index = av_index_search_timestamp(st, timestamp, flags); if (index < 0) return -1; c->currentframe = index; ...
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": "e54165aa392322bbeeb823fc33a17336e465b7b5", "normalized_at": "2026-06-20T05:17:39.140899Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_008962
CodeXGLUE Defect Detection
public_dataset
train
11162
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
void av_fast_malloc(void *ptr, unsigned int *size, size_t min_size) { void **p = ptr; if (min_size < *size) return; min_size= FFMAX(17*min_size/16 + 32, min_size); av_free(*p); *p = av_malloc(min_size); if (!*p) min_size = 0; *size= min_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": true, "project": "FFmpeg", "commit_id": "3b55429d5692dd782d8b3ce6a19819305157d1b8", "normalized_at": "2026-06-20T05:17:39.149854Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_017085
CodeXGLUE Defect Detection
public_dataset
train
21346
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static inline void gen_op_eval_fbu(TCGv dst, TCGv src, unsigned int fcc_offset) { gen_mov_reg_FCC0(dst, src, fcc_offset); gen_mov_reg_FCC1(cpu_tmp0, src, fcc_offset); tcg_gen_and_tl(dst, dst, cpu_tmp0); }
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": "de9e9d9f17a36ff76c1a02a5348835e5e0a081b0", "normalized_at": "2026-06-20T05:17:39.359785Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_003383
CodeXGLUE Defect Detection
public_dataset
train
4150
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static int megasas_ld_get_info_submit(SCSIDevice *sdev, int lun, MegasasCmd *cmd) { struct mfi_ld_info *info = cmd->iov_buf; size_t dcmd_size = sizeof(struct mfi_ld_info); uint8_t cdb[6]; SCSIRequest *req; ssize_t len, resid; uint16_t sdev_id = ((sde...
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": "87e459a810d7b1ec1638085b5a80ea3d9b43119a", "normalized_at": "2026-06-20T05:17:39.010597Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_010620
CodeXGLUE Defect Detection
public_dataset
train
13239
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
AVFilterBufferRef *avfilter_get_audio_buffer_ref_from_frame(const AVFrame *frame, int perms) { AVFilterBufferRef *samplesref = avfilter_get_audio_buffer_ref_from_arrays((uint8_t **)frame->data, frame->linesize[0], perms, ...
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": "5a4eb6aa275e4c1b80e1e125a7901903e35219f2", "normalized_at": "2026-06-20T05:17:39.193075Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_001308
CodeXGLUE Defect Detection
public_dataset
train
1604
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static void qpci_spapr_io_writeb(QPCIBus *bus, void *addr, uint8_t value) { QPCIBusSPAPR *s = container_of(bus, QPCIBusSPAPR, bus); uint64_t port = (uintptr_t)addr; if (port < s->pio.size) { writeb(s->pio_cpu_base + port, value); } else { writeb(s->mmio_cpu_base + port, 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": false, "project": "qemu", "commit_id": "8360544a6d3a54df1fce80f55ba4ad075a8ded54", "normalized_at": "2026-06-20T05:17:38.953224Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_001522
CodeXGLUE Defect Detection
public_dataset
train
1859
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static void dma_aio_cancel(BlockDriverAIOCB *acb) { DMAAIOCB *dbs = container_of(acb, DMAAIOCB, common); if (dbs->acb) { bdrv_aio_cancel(dbs->acb); } }
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": "c3adb5b9168a57790b5074489b6f0275ac3cc8b5", "normalized_at": "2026-06-20T05:17:38.958753Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_014898
CodeXGLUE Defect Detection
public_dataset
train
18628
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static int decode_subframe_lpc(FLACContext *s, int channel, int pred_order) { int sum, i, j; int coeff_prec, qlevel; int coeffs[pred_order]; // av_log(s->avctx, AV_LOG_DEBUG, " SUBFRAME LPC\n"); /* warm up samples */ // av_log(s->avctx, AV_LOG_DEBUG, " warm up samples...
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": "9d656110966fbdde0fd1d2e685f3ed3633ba3596", "normalized_at": "2026-06-20T05:17:39.301861Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_015391
CodeXGLUE Defect Detection
public_dataset
train
19236
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
void HELPER(ove)(CPUOpenRISCState *env, target_ulong test) { if (unlikely(test)) { OpenRISCCPU *cpu = openrisc_env_get_cpu(env); CPUState *cs = CPU(cpu); cs->exception_index = EXCP_RANGE; cpu_loop_exit_restore(cs, GETPC()); } }
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": "9745807191a81c45970f780166f44a7f93b18653", "normalized_at": "2026-06-20T05:17:39.313980Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_021042
CodeXGLUE Defect Detection
public_dataset
train
26301
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
int bdrv_pwrite_sync(BlockDriverState *bs, int64_t offset, const void *buf, int count) { int ret; ret = bdrv_pwrite(bs, offset, buf, count); if (ret < 0) { return ret; } /* No flush needed for cache=writethrough, it uses O_DSYNC */ if ((bs->open_flags & BDRV_O_CACHE_MASK...
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": "92196b2f5664d5defa778b1b24df56e2239b5e93", "normalized_at": "2026-06-20T05:17:39.467637Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_011838
CodeXGLUE Defect Detection
public_dataset
train
14730
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static int aio_read_f(BlockBackend *blk, int argc, char **argv) { int nr_iov, c; struct aio_ctx *ctx = g_new0(struct aio_ctx, 1); ctx->blk = blk; while ((c = getopt(argc, argv, "CP:qv")) != EOF) { switch (c) { case 'C': ctx->Cflag = 1; break; 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": "b062ad86dcd33ab39be5060b0655d8e13834b167", "normalized_at": "2026-06-20T05:17:39.225001Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_016971
CodeXGLUE Defect Detection
public_dataset
train
21204
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
uint64_t helper_load_fpcr (void) { uint64_t ret = 0; #ifdef CONFIG_SOFTFLOAT ret |= env->fp_status.float_exception_flags << 52; if (env->fp_status.float_exception_flags) ret |= 1ULL << 63; env->ipr[IPR_EXC_SUM] &= ~0x3E: env->ipr[IPR_EXC_SUM] |= env->fp_status.float_exception_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": "ba0e276db4b51bd2255a5d5ff8902c70d32ade40", "normalized_at": "2026-06-20T05:17:39.356612Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_006776
CodeXGLUE Defect Detection
public_dataset
train
8441
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static void move_audio(vorbis_enc_context *venc, float *audio, int *samples, int sf_size) { AVFrame *cur = NULL; int frame_size = 1 << (venc->log2_blocksize[1] - 1); int subframes = frame_size / sf_size; for (int sf = 0; sf < subframes; sf++) { cur = ff_bufqueue_get(&venc->bufqueue); ...
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": "5a2ad7ede33b5d63c1f1b1313a218da62e1c0d48", "normalized_at": "2026-06-20T05:17:39.096378Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_001403
CodeXGLUE Defect Detection
public_dataset
train
1719
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static inline void RENAME(uyvyToUV)(uint8_t *dstU, uint8_t *dstV, uint8_t *src1, uint8_t *src2, int width) { #if defined (HAVE_MMX2) || defined (HAVE_3DNOW) asm volatile( "movq "MANGLE(bm01010101)", %%mm4\n\t" "mov %0, %%"REG_a" \n\t" "1: \n\t" "movq (%1, %%"REG_a",4), %%mm0 \n\t" "movq 8(%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": true, "project": "FFmpeg", "commit_id": "7f526efd17973ec6d2204f7a47b6923e2be31363", "normalized_at": "2026-06-20T05:17:38.955607Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_007669
CodeXGLUE Defect Detection
public_dataset
train
9532
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
int v9fs_device_realize_common(V9fsState *s, Error **errp) { V9fsVirtioState *v = container_of(s, V9fsVirtioState, state); int i, len; struct stat stat; FsDriverEntry *fse; V9fsPath path; int rc = 1; /* initialize pdu allocator */ QLIST_INIT(&s->free_list); QLIST_INIT(&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": "583f21f8b9982d60c451e812af2d9dfe19d19d3f", "normalized_at": "2026-06-20T05:17:39.118990Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_012106
CodeXGLUE Defect Detection
public_dataset
train
15074
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static void end_frame(AVFilterLink *inlink) { TransContext *trans = inlink->dst->priv; AVFilterBufferRef *inpic = inlink->cur_buf; AVFilterBufferRef *outpic = inlink->dst->outputs[0]->out_buf; AVFilterLink *outlink = inlink->dst->outputs[0]; int plane; for (plane = 0; outpic->data[plan...
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": "07bad27810cdd7d3171cbd542119aa051646377c", "normalized_at": "2026-06-20T05:17:39.230827Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_008663
CodeXGLUE Defect Detection
public_dataset
train
10788
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
void helper_sysret(CPUX86State *env, int dflag) { int cpl, selector; if (!(env->efer & MSR_EFER_SCE)) { raise_exception_err(env, EXCP06_ILLOP, 0); } cpl = env->hflags & HF_CPL_MASK; if (!(env->cr[0] & CR0_PE_MASK) || cpl != 0) { raise_exception_err(env, EXCP0D_GPF, 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": "ac57622985220de064059971f9ccb00905e9bd04", "normalized_at": "2026-06-20T05:17:39.141693Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_002060
CodeXGLUE Defect Detection
public_dataset
train
2510
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
void ppce500_init(PPCE500Params *params) { MemoryRegion *address_space_mem = get_system_memory(); MemoryRegion *ram = g_new(MemoryRegion, 1); PCIBus *pci_bus; CPUPPCState *env = NULL; uint64_t elf_entry; uint64_t elf_lowaddr; hwaddr entry=0; hwaddr loadaddr=UIMAGE_LOAD_BASE; ...
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": "5bac0701113f4de4fee053a3939b0f569a04b88c", "normalized_at": "2026-06-20T05:17:38.972422Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_007594
CodeXGLUE Defect Detection
public_dataset
train
9431
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
void ff_atrac_iqmf(float *inlo, float *inhi, unsigned int nIn, float *pOut, float *delayBuf, float *temp) { int i, j; float *p1, *p3; memcpy(temp, delayBuf, 46*sizeof(float)); p3 = temp + 46; /* loop1 */ for(i=0; i<nIn; i+=2){ p3[2*i+0] = inlo[i ] + inhi[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": "746cb9bc53f71ed8d67827c4518deecc4ba2a75d", "normalized_at": "2026-06-20T05:17:39.117053Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_015980
CodeXGLUE Defect Detection
public_dataset
train
19960
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static uint32_t drc_unisolate_physical(sPAPRDRConnector *drc) { /* cannot unisolate a non-existent resource, and, or resources * which are in an 'UNUSABLE' allocation state. (PAPR 2.7, * 13.5.3.5) */ if (!drc->dev) { return RTAS_OUT_NO_SUCH_INDICATOR; } drc->isolation_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": "9d4c0f4f0a71e74fd7e04d73620268484d693adf", "normalized_at": "2026-06-20T05:17:39.330785Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_007171
CodeXGLUE Defect Detection
public_dataset
train
8910
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static int hls_slice_data_wpp(HEVCContext *s, const HEVCNAL *nal) { const uint8_t *data = nal->data; int length = nal->size; HEVCLocalContext *lc = s->HEVClc; int *ret = av_malloc_array(s->sh.num_entry_point_offsets + 1, sizeof(int)); int *arg = av_malloc_array(s->sh.num_entry_point_o...
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": "214085852491448631dcecb008b5d172c11b8892", "normalized_at": "2026-06-20T05:17:39.107139Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_001325
CodeXGLUE Defect Detection
public_dataset
train
1627
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
BlockAIOCB *ide_issue_trim(BlockDriverState *bs, int64_t sector_num, QEMUIOVector *qiov, int nb_sectors, BlockCompletionFunc *cb, void *opaque) { TrimAIOCB *iocb; iocb = qemu_aio_get(&trim_aiocb_info, bs, cb, opaque); iocb->bh = qemu_bh_new(ide_trim_bh_cb, iocb); iocb->ret = 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": "4be746345f13e99e468c60acbd3a355e8183e3ce", "normalized_at": "2026-06-20T05:17:38.953938Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_011758
CodeXGLUE Defect Detection
public_dataset
train
14628
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static size_t pdu_unmarshal(V9fsPDU *pdu, size_t offset, const char *fmt, ...) { size_t old_offset = offset; va_list ap; int i; va_start(ap, fmt); for (i = 0; fmt[i]; i++) { switch (fmt[i]) { case 'b': { uint8_t *valp = va_arg(ap, uint8_t *); offse...
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": "302a0d3ed721e4c30c6a2a37f64c60b50ffd33b9", "normalized_at": "2026-06-20T05:17:39.223278Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_015844
CodeXGLUE Defect Detection
public_dataset
train
19797
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static int cmv_process_header(CmvContext *s, const uint8_t *buf, const uint8_t *buf_end) { int pal_start, pal_count, i, ret, fps; if(buf_end - buf < 16) { av_log(s->avctx, AV_LOG_WARNING, "truncated header\n"); return AVERROR_INVALIDDATA; s->width = AV_RL16(&buf[4]); s->height = AV_RL16...
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": "5430839144c6da0160e8e0cfb0c8db01de432e94", "normalized_at": "2026-06-20T05:17:39.327622Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_004791
CodeXGLUE Defect Detection
public_dataset
train
5943
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
void ff_wmv2_idct_c(short * block){ int i; for(i=0;i<64;i+=8){ wmv2_idct_row(block+i); } for(i=0;i<8;i++){ wmv2_idct_col(block+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": "e6bc38fd49c94726b45d5d5cc2b756ad8ec49ee0", "normalized_at": "2026-06-20T05:17:39.045558Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_018541
CodeXGLUE Defect Detection
public_dataset
train
23154
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static void xilinx_spips_realize(DeviceState *dev, Error **errp) { XilinxSPIPS *s = XILINX_SPIPS(dev); SysBusDevice *sbd = SYS_BUS_DEVICE(dev); XilinxSPIPSClass *xsc = XILINX_SPIPS_GET_CLASS(s); int i; DB_PRINT("realized spips\n"); s->spi = g_new(SSIBus *, s->num_busses); 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": "qemu", "commit_id": "b5cd9143e78da8ea9e17fa523aacbedd267aae54", "normalized_at": "2026-06-20T05:17:39.401849Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_018559
CodeXGLUE Defect Detection
public_dataset
train
23181
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static void exynos4210_uart_write(void *opaque, target_phys_addr_t offset, uint64_t val, unsigned size) { Exynos4210UartState *s = (Exynos4210UartState *)opaque; uint8_t ch; PRINT_DEBUG_EXTEND("UART%d: <0x%04x> %s <- 0x%08llx\n", s->channel, offset, exynos4210_...
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.402440Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_005871
CodeXGLUE Defect Detection
public_dataset
train
7292
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
int coroutine_fn bdrv_co_flush(BlockDriverState *bs) { int ret; BdrvTrackedRequest req; if (!bs || !bdrv_is_inserted(bs) || bdrv_is_read_only(bs) || bdrv_is_sg(bs)) { return 0; } tracked_request_begin(&req, bs, 0, 0, BDRV_TRACKED_FLUSH); int current_gen = bs->write_gen; /* Wa...
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": "3ff2f67a7c24183fcbcfe1332e5223ac6f96438c", "normalized_at": "2026-06-20T05:17:39.074302Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_005218
CodeXGLUE Defect Detection
public_dataset
train
6471
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static int tscc2_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; TSCC2Context *c = avctx->priv_data; GetByteContext gb; uint32_t frame_type, size; int i, val, le...
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": "4dc3714c48e74e75a3a9c7d9fb52fd5917107508", "normalized_at": "2026-06-20T05:17:39.056859Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_014622
CodeXGLUE Defect Detection
public_dataset
train
18261
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static inline void *host_from_stream_offset(QEMUFile *f, ram_addr_t offset, int flags) { static RAMBlock *block = NULL; char id[256]; uint8_t len; if (flags & RAM_SAVE_FLAG_CONTINUE) { if (!block ||...
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": "e3dd74934f2d2c8c67083995928ff68e8c1d0030", "normalized_at": "2026-06-20T05:17:39.294165Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_004600
CodeXGLUE Defect Detection
public_dataset
train
5697
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static inline void _t_gen_mov_env_TN(int offset, TCGv tn) { if (offset > sizeof(CPUCRISState)) { fprintf(stderr, "wrong store to env at off=%d\n", offset); } tcg_gen_st_tl(tn, cpu_env, 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": "qemu", "commit_id": "37654d9e6af84003982f8b9a5d59a4aef28e0a79", "normalized_at": "2026-06-20T05:17:39.040740Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_016848
CodeXGLUE Defect Detection
public_dataset
train
21055
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static int rm_assemble_video_frame(AVFormatContext *s, ByteIOContext *pb, RMDemuxContext *rm, RMStream *vst, AVPacket *pkt, int len) { int hdr, seq, pic_num, len2, pos; int type; hdr = get_byte(pb); len--; type = hdr >> 6; ...
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": "ce0453aac99c826ba0093f701e4dea67718ce457", "normalized_at": "2026-06-20T05:17:39.353095Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_005435
CodeXGLUE Defect Detection
public_dataset
train
6751
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static void cmd_mode_sense(IDEState *s, uint8_t *buf) { int action, code; int max_len; if (buf[0] == GPCMD_MODE_SENSE_10) { max_len = ube16_to_cpu(buf + 7); } else { max_len = buf[4]; } action = buf[2] >> 6; code = buf[2] & 0x3f; switch(action) { 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": "qemu", "commit_id": "a07c7dcd6f33b668747148ac28c0e147f958aa18", "normalized_at": "2026-06-20T05:17:39.062406Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_007828
CodeXGLUE Defect Detection
public_dataset
train
9741
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static void x86_cpu_realizefn(DeviceState *dev, Error **errp) { CPUState *cs = CPU(dev); X86CPU *cpu = X86_CPU(dev); X86CPUClass *xcc = X86_CPU_GET_CLASS(dev); CPUX86State *env = &cpu->env; Error *local_err = NULL; static bool ht_warned; if (xcc->kvm_required && !kvm_enabled()) { ...
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.122581Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_000348
CodeXGLUE Defect Detection
public_dataset
train
433
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; AVSubtitle *sub = data; const uint8_t *buf_end = buf + buf_size; uint8_t *bitmap; int w, h, x, y, i, ret; int64_...
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": "2002436b0c914e18eda4f45ef816b14501a1dbae", "normalized_at": "2026-06-20T05:17:38.925840Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_016456
CodeXGLUE Defect Detection
public_dataset
train
20565
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
int ff_wmv2_decode_picture_header(MpegEncContext * s) { Wmv2Context * const w= (Wmv2Context*)s; int code; #if 0 { int i; for(i=0; i<s->gb.size*8; i++) printf("%d", get_bits1(&s->gb)); // get_bits1(&s->gb); printf("END\n"); return -1; } #endif if(s->picture_number==0) decode_e...
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": "9ccbc672aa341d3cb4c4159e1e746ef0693ee138", "normalized_at": "2026-06-20T05:17:39.343232Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_011924
CodeXGLUE Defect Detection
public_dataset
train
14843
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static inline void gen_movcf_s (int fs, int fd, int cc, int tf) { uint32_t ccbit; int cond; TCGv r_tmp1 = tcg_temp_local_new(TCG_TYPE_I32); TCGv fp0 = tcg_temp_local_new(TCG_TYPE_I32); TCGv fp1 = tcg_temp_local_new(TCG_TYPE_I32); int l1 = gen_new_label(); if (cc) ccbit = 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": "9bf3eb2ca542dd9306cb2e72fc68e02ba3e56e2e", "normalized_at": "2026-06-20T05:17:39.226865Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_013002
CodeXGLUE Defect Detection
public_dataset
train
16182
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static int64_t alloc_clusters_noref(BlockDriverState *bs, uint64_t size) { BDRVQcowState *s = bs->opaque; uint64_t i, nb_clusters; int refcount; nb_clusters = size_to_clusters(s, size); retry: for(i = 0; i < nb_clusters; i++) { uint64_t next_cluster_index = s->free_cluster_index++;...
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": "65f33bc0020112e7be7b8966495cd5efa2d0ab15", "normalized_at": "2026-06-20T05:17:39.253848Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_002968
CodeXGLUE Defect Detection
public_dataset
train
3635
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static int get_nb_samples(AVCodecContext *avctx, GetByteContext *gb, int buf_size, int *coded_samples, int *approx_nb_samples) { ADPCMDecodeContext *s = avctx->priv_data; int nb_samples = 0; int ch = avctx->channels; int has_coded_samples = 0; 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": "3c803ed9cb23e5a8d76b6c31d8a8c71cac27e769", "normalized_at": "2026-06-20T05:17:38.999654Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }