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_007733
CodeXGLUE Defect Detection
public_dataset
train
9612
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static void search_for_ms(AACEncContext *s, ChannelElement *cpe, const float lambda) { int start = 0, i, w, w2, g; float M[128], S[128]; float *L34 = s->scoefs, *R34 = s->scoefs + 128, *M34 = s->scoefs + 128*2, *S34 = s->scoefs + 128*3; SingleChannelElement *sce0 = &cpe->...
This example comes from CodeXGLUE defect detection. The original dataset provides 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": "6394acaf36da3106f4793bda32730f8ff6b0ddb1", "normalized_at": "2026-06-20T05:17:39.120354Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_020593
CodeXGLUE Defect Detection
public_dataset
train
25755
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static void scsi_generic_class_initfn(ObjectClass *klass, void *data) { DeviceClass *dc = DEVICE_CLASS(klass); SCSIDeviceClass *sc = SCSI_DEVICE_CLASS(klass); sc->realize = scsi_generic_realize; sc->unrealize = scsi_unrealize; sc->alloc_req = scsi_new_request; sc->parse_cdb ...
This example comes from CodeXGLUE defect detection. The original dataset provides 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": "fb7b5c0df6e3c501973ce4d57eb2b1d4344a519d", "normalized_at": "2026-06-20T05:17:39.455737Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_007137
CodeXGLUE Defect Detection
public_dataset
train
8868
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static void slirp_guestfwd(SlirpState *s, Monitor *mon, const char *config_str, int legacy_format) { struct in_addr server = { .s_addr = 0 }; struct GuestFwd *fwd; const char *p; char buf[128]; char *end; int port; p = config_str; if (legacy_format)...
This example comes from CodeXGLUE defect detection. The original dataset provides 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": "0752706de257b38763006ff5bb6b39a97e669ba2", "normalized_at": "2026-06-20T05:17:39.106170Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_001707
CodeXGLUE Defect Detection
public_dataset
train
2085
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static void apic_startup(APICState *s, int vector_num) { CPUState *env = s->cpu_env; if (!env->halted) return; env->eip = 0; cpu_x86_load_seg_cache(env, R_CS, vector_num << 8, vector_num << 12, 0xffff, 0); env->halted = 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": "b09ea7d55cfab5a75912bb56ed1fcd757604a759", "normalized_at": "2026-06-20T05:17:38.963577Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
owasp_python_000492
OWASP Benchmark Python
public_dataset
processed
492
python
generic
security_review
CWE-328
A02: Cryptographic Failures
medium
false
Weak Hashing Algorithm
''' OWASP Benchmark for Python v0.1 This file is part of the Open Web Application Security Project (OWASP) Benchmark Project. For details, please see https://owasp.org/www-project-benchmark. The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms of the GNU General Public Licens...
This example was normalized from OWASP Benchmark Python. It is intended for security review and vulnerability detection. A secure repair is not included in this source-specific normalized record.
[ "owasp", "benchmark-python", "python", "cwe-328" ]
{ "raw_path": "testcode/BenchmarkTest00492.py", "label_source": "data/raw/owasp_benchmark_python/expectedresults-0.1.csv", "normalized_at": "2026-06-20T05:21:00.702013Z", "name_fixed_at": "2026-06-20T05:22:49.833636Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_006512
CodeXGLUE Defect Detection
public_dataset
train
8110
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
void usb_cancel_packet(USBPacket * p) { assert(p->owner != NULL); usb_device_cancel_packet(p->owner->dev, p); p->owner = 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": "f53c398aa603cea135ee58fd15249aeff7b9c7ea", "normalized_at": "2026-06-20T05:17:39.090025Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_009792
CodeXGLUE Defect Detection
public_dataset
train
12206
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
int ff_wma_run_level_decode(AVCodecContext* avctx, GetBitContext* gb, VLC *vlc, const uint16_t *level_table, const uint16_t *run_table, int version, WMACoef *ptr, int offset, int num_coefs, int block_len,...
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": true, "project": "FFmpeg", "commit_id": "4df8bdeef3c8042659147daafad34bd76ad09096", "normalized_at": "2026-06-20T05:17:39.171100Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_015769
CodeXGLUE Defect Detection
public_dataset
train
19703
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static int xsub_encode(AVCodecContext *avctx, unsigned char *buf, int bufsize, void *data) { AVSubtitle *h = data; uint64_t startTime = h->pts / 1000; // FIXME: need better solution... uint64_t endTime = startTime + h->end_display_time - h->start_display_time; int start_tc[4...
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": true, "project": "FFmpeg", "commit_id": "9522a752bf4179b69fa9e334ee755405ba8f4459", "normalized_at": "2026-06-20T05:17:39.324855Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_008301
CodeXGLUE Defect Detection
public_dataset
train
10331
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static void vmsvga_init(struct vmsvga_state_s *s, MemoryRegion *address_space, MemoryRegion *io) { s->scratch_size = SVGA_SCRATCH_SIZE; s->scratch = g_malloc(s->scratch_size * 4); s->vga.con = graphic_console_init(vmsvga_update_display, v...
This example comes from CodeXGLUE defect detection. The original dataset provides 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": "2c62f08ddbf3fa80dc7202eb9a2ea60ae44e2cc5", "normalized_at": "2026-06-20T05:17:39.133245Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_004003
CodeXGLUE Defect Detection
public_dataset
train
4936
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static int tosa_dac_event(I2CSlave *i2c, enum i2c_event event) { TosaDACState *s = TOSA_DAC(i2c); s->len = 0; switch (event) { case I2C_START_SEND: break; case I2C_START_RECV: printf("%s: recv not supported!!!\n", __FUNCTION__); break; case I2C_FINISH: #ifdef...
This example comes from CodeXGLUE defect detection. The original dataset provides 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:39.026124Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_017070
CodeXGLUE Defect Detection
public_dataset
train
21328
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static int vp3_decode_frame(AVCodecContext *avctx, void *data, int *data_size, const uint8_t *buf, int buf_size) { Vp3DecodeContext *s = avctx->priv_data; GetBitContext gb; static int counter = 0; int i; init_get_bits(&gb, buf, buf_si...
This example comes from CodeXGLUE defect detection. The original dataset provides 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": "5e53486545726987ab4482321d4dcf7e23e7652f", "normalized_at": "2026-06-20T05:17:39.359370Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_018009
CodeXGLUE Defect Detection
public_dataset
train
22505
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static void dump(unsigned char *buf,size_t len) { int i; for(i=0;i<len;i++) { if ((i&15)==0) printf("%04x ",i); printf("%02x ",buf[i]); if ((i&15)==15) printf("\n"); } printf("\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": "FFmpeg", "commit_id": "f19af812a32c1398d48c3550d11dbc6aafbb2bfc", "normalized_at": "2026-06-20T05:17:39.388466Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_001383
CodeXGLUE Defect Detection
public_dataset
train
1694
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static int zipl_run(struct scsi_blockptr *pte) { struct component_header *header; struct component_entry *entry; uint8_t tmp_sec[SECTOR_SIZE]; virtio_read(pte->blockno, tmp_sec); header = (struct component_header *)tmp_sec; if (!zipl_magic(tmp_sec)) { goto fail; } ...
This example comes from CodeXGLUE defect detection. The original dataset provides 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": "abd696e4f74a9d30801c6ae2693efe4e5979c2f2", "normalized_at": "2026-06-20T05:17:38.955263Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_005198
CodeXGLUE Defect Detection
public_dataset
train
6447
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static int vdpau_alloc(AVCodecContext *s) { InputStream *ist = s->opaque; int loglevel = (ist->hwaccel_id == HWACCEL_AUTO) ? AV_LOG_VERBOSE : AV_LOG_ERROR; AVVDPAUContext *vdpau_ctx; VDPAUContext *ctx; const char *display, *vendor; VdpStatus err; int i; ctx = av_mallocz(sizeo...
This example comes from CodeXGLUE defect detection. The original dataset provides 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": "d3eb317b862c3f5653f0ae8dfcb22edf1713ab5b", "normalized_at": "2026-06-20T05:17:39.056444Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_010587
CodeXGLUE Defect Detection
public_dataset
train
13199
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static int mxf_read_content_storage(void *arg, AVIOContext *pb, int tag, int size, UID uid) { MXFContext *mxf = arg; switch (tag) { case 0x1901: mxf->packages_count = avio_rb32(pb); if (mxf->packages_count >= UINT_MAX / sizeof(UID)) return -1; mxf->packages_refs =...
This example comes from CodeXGLUE defect detection. The original dataset provides 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.192332Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_010228
CodeXGLUE Defect Detection
public_dataset
train
12750
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static int get_int32_le(QEMUFile *f, void *pv, size_t size) { int32_t *old = pv; int32_t new; qemu_get_sbe32s(f, &new); if (*old <= new) { return 0; } return -EINVAL; }
This example comes from CodeXGLUE defect detection. The original dataset provides 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": "24a370ef2351dc596a7e47508b952ddfba79ef94", "normalized_at": "2026-06-20T05:17:39.182874Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_019867
CodeXGLUE Defect Detection
public_dataset
train
24848
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static int faac_decode_frame(AVCodecContext *avctx, void *data, int *data_size, uint8_t *buf, int buf_size) { FAACContext *s = (FAACContext *) avctx->priv_data; #ifndef FAAD2_VERSION unsigned long bytesconsumed; short *sample_buffer = 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": "980bbb13d653561d83619350db32ccb5e5248f95", "normalized_at": "2026-06-20T05:17:39.439066Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_015494
CodeXGLUE Defect Detection
public_dataset
train
19363
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static void qpci_pc_config_writel(QPCIBus *bus, int devfn, uint8_t offset, uint32_t value) { outl(0xcf8, (1 << 31) | (devfn << 8) | offset); outl(0xcfc, 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": "a879125b47c3ae554c01824f996a64a45a86556e", "normalized_at": "2026-06-20T05:17:39.316754Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_006831
CodeXGLUE Defect Detection
public_dataset
train
8506
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
int ff_lpc_calc_coefs(LPCContext *s, const int32_t *samples, int blocksize, int min_order, int max_order, int precision, int32_t coefs[][MAX_LPC_ORDER], int *shift, enum FFLPCType lpc_type, int lpc_passes, ...
This example comes from CodeXGLUE defect detection. The original dataset provides 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": "e27be795f019a8ba41c33b0cf0e3a060069252ea", "normalized_at": "2026-06-20T05:17:39.097807Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_017077
CodeXGLUE Defect Detection
public_dataset
train
21337
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static int decode_sequence_header(AVCodecContext *avctx, GetBitContext *gb) { VC9Context *v = avctx->priv_data; v->profile = get_bits(gb, 2); av_log(avctx, AV_LOG_DEBUG, "Profile: %i\n", v->profile); #if HAS_ADVANCED_PROFILE if (v->profile > PROFILE_MAIN) { v->level = 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": true, "project": "FFmpeg", "commit_id": "7cc84d241ba6ef8e27e4d057176a4ad385ad3d59", "normalized_at": "2026-06-20T05:17:39.359615Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_003079
CodeXGLUE Defect Detection
public_dataset
train
3768
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static void qbus_print(Monitor *mon, BusState *bus, int indent) { struct DeviceState *dev; qdev_printf("bus: %s\n", bus->name); indent += 2; qdev_printf("type %s\n", bus_type_names[bus->type]); LIST_FOREACH(dev, &bus->children, sibling) { qdev_print(mon, dev, indent); } }
This example comes from CodeXGLUE defect detection. The original dataset provides 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": "10c4c98ab7dc18169b37b76f6ea5e60ebe65222b", "normalized_at": "2026-06-20T05:17:39.002115Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
owasp_python_000628
OWASP Benchmark Python
public_dataset
processed
628
python
generic
security_review
CWE-330
A02: Cryptographic Failures
medium
true
Use of Insufficiently Random Values
''' OWASP Benchmark for Python v0.1 This file is part of the Open Web Application Security Project (OWASP) Benchmark Project. For details, please see https://owasp.org/www-project-benchmark. The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms of the GNU General Public Licens...
This example was normalized from OWASP Benchmark Python. It is intended for security review and vulnerability detection. A secure repair is not included in this source-specific normalized record.
[ "owasp", "benchmark-python", "python", "cwe-330" ]
{ "raw_path": "testcode/BenchmarkTest00628.py", "label_source": "data/raw/owasp_benchmark_python/expectedresults-0.1.csv", "normalized_at": "2026-06-20T05:21:00.707843Z", "name_fixed_at": "2026-06-20T05:22:49.835920Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_006527
CodeXGLUE Defect Detection
public_dataset
train
8128
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static int v4l2_read_header(AVFormatContext *s1, AVFormatParameters *ap) { struct video_data *s = s1->priv_data; AVStream *st; int width, height; int res, frame_rate, frame_rate_base; uint32_t desired_format, capabilities; if (ap->width <= 0 || ap->height <= 0 || ap->time_base.den <= 0)...
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": true, "project": "FFmpeg", "commit_id": "deaab5fc32134ea53bff2ab46f95dd493ecf94c1", "normalized_at": "2026-06-20T05:17:39.090350Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_001099
CodeXGLUE Defect Detection
public_dataset
train
1344
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
int ff_flac_decode_frame_header(AVCodecContext *avctx, GetBitContext *gb, FLACFrameInfo *fi) { int bs_code, sr_code, bps_code; /* frame sync code */ skip_bits(gb, 16); /* block size and sample rate codes */ bs_code = get_bits(gb, 4); sr_code = get_bits...
This example comes from CodeXGLUE defect detection. The original dataset provides 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": "7f4e432148779b338a6199f50eb70845c78fd060", "normalized_at": "2026-06-20T05:17:38.947612Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_008100
CodeXGLUE Defect Detection
public_dataset
train
10083
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
void qmp_block_stream(const char *device, bool has_base, const char *base, bool has_backing_file, const char *backing_file, bool has_speed, int64_t speed, bool has_on_error, BlockdevOnError on_error, 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": "qemu", "commit_id": "f3e69beb942103ccd5248273e4d95e76b64ab64c", "normalized_at": "2026-06-20T05:17:39.128696Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_014515
CodeXGLUE Defect Detection
public_dataset
train
18120
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
void qxl_spice_update_area(PCIQXLDevice *qxl, uint32_t surface_id, struct QXLRect *area, struct QXLRect *dirty_rects, uint32_t num_dirty_rects, uint32_t clear_dirty_region, qxl_async_io async) { if (asy...
This example comes from CodeXGLUE defect detection. The original dataset provides 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": "4295e15aa730a95003a3639d6dad2eb1e65a59e2", "normalized_at": "2026-06-20T05:17:39.291087Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_012610
CodeXGLUE Defect Detection
public_dataset
train
15702
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static void xenfb_update(void *opaque) { struct XenFB *xenfb = opaque; DisplaySurface *surface; int i; if (xenfb->c.xendev.be_state != XenbusStateConnected) return; if (!xenfb->feature_update) { /* we don't get update notifications, thus use the * sledge hammer ...
This example comes from CodeXGLUE defect detection. The original dataset provides 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": "9f2130f58d5dd4e1fcb435cca08bf77e7c32e6c6", "normalized_at": "2026-06-20T05:17:39.244070Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_008158
CodeXGLUE Defect Detection
public_dataset
train
10151
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static hwaddr ppc_hash64_pte_raddr(ppc_slb_t *slb, ppc_hash_pte64_t pte, target_ulong eaddr) { hwaddr mask; int target_page_bits; hwaddr rpn = pte.pte1 & HPTE64_R_RPN; /* * We support 4K, 64K and 16M now */ target_page_bits = ppc_hash64_page_shif...
This example comes from CodeXGLUE defect detection. The original dataset provides 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": "cd6a9bb6e977864b1b7ec21b983fa0678b4b82e9", "normalized_at": "2026-06-20T05:17:39.130228Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_003997
CodeXGLUE Defect Detection
public_dataset
train
4929
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static void vmdk_refresh_limits(BlockDriverState *bs, Error **errp) { BDRVVmdkState *s = bs->opaque; int i; for (i = 0; i < s->num_extents; i++) { if (!s->extents[i].flat) { bs->bl.write_zeroes_alignment = MAX(bs->bl.write_zeroes_alignment, 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": "cf081fca4e3cc02a309659b571ab0c5b225ea4cf", "normalized_at": "2026-06-20T05:17:39.026018Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_000414
CodeXGLUE Defect Detection
public_dataset
train
516
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static int hnm_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { AVFrame *frame = data; Hnm4VideoContext *hnm = avctx->priv_data; int ret; uint16_t chunk_id; if (avpkt->size < 8) { if ((ret = ff_get_buffer(avctx, frame, ...
This example comes from CodeXGLUE defect detection. The original dataset provides 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": "0398b7cbd39abb049775d558ccc4ccf6dc01e92c", "normalized_at": "2026-06-20T05:17:38.927743Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_020384
CodeXGLUE Defect Detection
public_dataset
train
25476
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
void ff_ivi_output_plane(IVIPlaneDesc *plane, uint8_t *dst, int dst_pitch) { int x, y; const int16_t *src = plane->bands[0].buf; uint32_t pitch = plane->bands[0].pitch; for (y = 0; y < plane->height; y++) { for (x = 0; x < plane->width; x++) dst[x] = av_clip_uin...
This example comes from CodeXGLUE defect detection. The original dataset provides 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": "b18a0cc781b791912549504ca8a257f35a151c5e", "normalized_at": "2026-06-20T05:17:39.451132Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_008195
CodeXGLUE Defect Detection
public_dataset
train
10197
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
ioapic_mem_read(void *opaque, target_phys_addr_t addr, unsigned int size) { IOAPICCommonState *s = opaque; int index; uint32_t val = 0; switch (addr & 0xff) { case IOAPIC_IOREGSEL: val = s->ioregsel; break; case IOAPIC_IOWIN: if (size != 4) { brea...
This example comes from CodeXGLUE defect detection. The original dataset provides 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.130958Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_006298
CodeXGLUE Defect Detection
public_dataset
train
7836
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
CPUState *ppc4xx_init (const char *cpu_model, clk_setup_t *cpu_clk, clk_setup_t *tb_clk, uint32_t sysclk) { CPUState *env; /* init CPUs */ env = cpu_init(cpu_model); if (!env) { fprintf(stderr, "Unable to find PowerPC %s CPU definition\n", ...
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": false, "project": "qemu", "commit_id": "d63cb48db9016328a7a69f3a1c2938cd3dfc9d1a", "normalized_at": "2026-06-20T05:17:39.084594Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_005951
CodeXGLUE Defect Detection
public_dataset
train
7402
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
uint64_t helper_fmul(CPUPPCState *env, uint64_t arg1, uint64_t arg2) { CPU_DoubleU farg1, farg2; farg1.ll = arg1; farg2.ll = arg2; if (unlikely((float64_is_infinity(farg1.d) && float64_is_zero(farg2.d)) || (float64_is_zero(farg1.d) && float64_is_infinity(farg2.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": "59800ec8e52bcfa271fa61fb0aae19205ef1b7f1", "normalized_at": "2026-06-20T05:17:39.076216Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_015406
CodeXGLUE Defect Detection
public_dataset
train
19260
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
tcg_target_ulong tcg_qemu_tb_exec(CPUArchState *cpustate, uint8_t *tb_ptr) { tcg_target_ulong next_tb = 0; env = cpustate; tci_reg[TCG_AREG0] = (tcg_target_ulong)env; assert(tb_ptr); for (;;) { #if defined(GETPC) tci_tb_ptr = (uintptr_t)tb_ptr; #endif TCGOpcode opc = tb...
This example comes from CodeXGLUE defect detection. The original dataset provides 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": "03fc0548b70393b0c8d43703591a9e34fb8e3123", "normalized_at": "2026-06-20T05:17:39.314834Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
owasp_python_000517
OWASP Benchmark Python
public_dataset
processed
517
python
generic
security_review
CWE-22
A01: Broken Access Control
medium
true
Path Traversal
''' OWASP Benchmark for Python v0.1 This file is part of the Open Web Application Security Project (OWASP) Benchmark Project. For details, please see https://owasp.org/www-project-benchmark. The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms of the GNU General Public Licens...
This example was normalized from OWASP Benchmark Python. It is intended for security review and vulnerability detection. A secure repair is not included in this source-specific normalized record.
[ "owasp", "benchmark-python", "python", "cwe-22" ]
{ "raw_path": "testcode/BenchmarkTest00517.py", "label_source": "data/raw/owasp_benchmark_python/expectedresults-0.1.csv", "normalized_at": "2026-06-20T05:21:00.703080Z", "name_fixed_at": "2026-06-20T05:22:49.834043Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_002340
CodeXGLUE Defect Detection
public_dataset
train
2849
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static int yop_read_packet(AVFormatContext *s, AVPacket *pkt) { YopDecContext *yop = s->priv_data; AVIOContext *pb = s->pb; int ret; int actual_video_data_size = yop->frame_size - yop->audio_block_length - yop->palette_size; yop->video_packet.stream_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": "551f683861bbae1002542e70dc196244a1cd24ad", "normalized_at": "2026-06-20T05:17:38.980751Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_012859
CodeXGLUE Defect Detection
public_dataset
train
16010
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
target_ulong helper_rdhwr_cc(CPUMIPSState *env) { check_hwrena(env, 2); #ifdef CONFIG_USER_ONLY return env->CP0_Count; #else return (int32_t)cpu_mips_get_count(env); #endif }
This example comes from CodeXGLUE defect detection. The original dataset provides 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": "d96391c1ffeb30a0afa695c86579517c69d9a889", "normalized_at": "2026-06-20T05:17:39.250500Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_008733
CodeXGLUE Defect Detection
public_dataset
train
10879
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
PXA2xxState *pxa255_init(MemoryRegion *address_space, unsigned int sdram_size) { PXA2xxState *s; int i; DriveInfo *dinfo; s = g_new0(PXA2xxState, 1); s->cpu = cpu_arm_init("pxa255"); if (s->cpu == NULL) { fprintf(stderr, "Unable to find CPU definition\n"); exit(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": "c92cfba822245c42fec611f310ed74c1821be3d2", "normalized_at": "2026-06-20T05:17:39.144334Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_001837
CodeXGLUE Defect Detection
public_dataset
train
2241
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static int coroutine_fn bdrv_co_do_pwritev(BlockDriverState *bs, int64_t offset, unsigned int bytes, QEMUIOVector *qiov, BdrvRequestFlags flags) { BdrvTrackedRequest req; /* TODO Lift BDRV_SECTOR_SIZE restriction in BlockDriver interface */ uint64_t align = MAX(BDRV_SECTOR_SIZE, bs->request_al...
This example comes from CodeXGLUE defect detection. The original dataset provides 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": "28de2dcd88de31f50bbd43d9c2fcb046c3a727cb", "normalized_at": "2026-06-20T05:17:38.966605Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_004788
CodeXGLUE Defect Detection
public_dataset
train
5940
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
int ff_dca_convert_bitstream(const uint8_t *src, int src_size, uint8_t *dst, int max_size) { uint32_t mrk; int i, tmp; const uint16_t *ssrc = (const uint16_t *) src; uint16_t *sdst = (uint16_t *) dst; PutBitContext pb; if ((unsigned) src_size > (unsigned) 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": "FFmpeg", "commit_id": "b06cb15b9d7928bf54b639c9f9f7658c2c38bfb9", "normalized_at": "2026-06-20T05:17:39.045486Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_002629
CodeXGLUE Defect Detection
public_dataset
train
3203
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static void ipmi_init_sensors_from_sdrs(IPMIBmcSim *s) { unsigned int i, pos; IPMISensor *sens; for (i = 0; i < MAX_SENSORS; i++) { memset(s->sensors + i, 0, sizeof(*sens)); } pos = 0; for (i = 0; !sdr_find_entry(&s->sdr, i, &pos, NULL); i++) { struct ipmi_sdr_compac...
This example comes from CodeXGLUE defect detection. The original dataset provides 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": "73d60fa5fae60c8e07e1f295d8c7fd5d04320160", "normalized_at": "2026-06-20T05:17:38.989788Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_010822
CodeXGLUE Defect Detection
public_dataset
train
13493
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static void qemu_aio_wait_nonblocking(void) { qemu_notify_event(); qemu_aio_wait(); }
This example comes from CodeXGLUE defect detection. The original dataset provides 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": "c4d9d19645a484298a67e9021060bc7c2b081d0f", "normalized_at": "2026-06-20T05:17:39.197869Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
owasp_python_000806
OWASP Benchmark Python
public_dataset
processed
806
python
generic
security_review
CWE-328
A02: Cryptographic Failures
medium
true
Weak Hashing Algorithm
''' OWASP Benchmark for Python v0.1 This file is part of the Open Web Application Security Project (OWASP) Benchmark Project. For details, please see https://owasp.org/www-project-benchmark. The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms of the GNU General Public Licens...
This example was normalized from OWASP Benchmark Python. It is intended for security review and vulnerability detection. A secure repair is not included in this source-specific normalized record.
[ "owasp", "benchmark-python", "python", "cwe-328" ]
{ "raw_path": "testcode/BenchmarkTest00806.py", "label_source": "data/raw/owasp_benchmark_python/expectedresults-0.1.csv", "normalized_at": "2026-06-20T05:21:00.716019Z", "name_fixed_at": "2026-06-20T05:22:49.838871Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_015195
CodeXGLUE Defect Detection
public_dataset
train
18986
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static inline int tcg_global_reg_new_internal(TCGType type, int reg, const char *name) { TCGContext *s = &tcg_ctx; TCGTemp *ts; int idx; #if TCG_TARGET_REG_BITS == 32 if (type != TCG_TYPE_I32) tcg_abort(); #endif if (tcg_regset_test_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": false, "project": "qemu", "commit_id": "b3a62939561e07bc34493444fa926b6137cba4e8", "normalized_at": "2026-06-20T05:17:39.309336Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_012170
CodeXGLUE Defect Detection
public_dataset
train
15154
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static void alpha_cpu_initfn(Object *obj) { CPUState *cs = CPU(obj); AlphaCPU *cpu = ALPHA_CPU(obj); CPUAlphaState *env = &cpu->env; cs->env_ptr = env; cpu_exec_init(cs, &error_abort); tlb_flush(cs, 1); alpha_translate_init(); #if defined(CONFIG_USER_ONLY) env->ps = PS_US...
This example comes from CodeXGLUE defect detection. The original dataset provides 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": "ce5b1bbf624b977a55ff7f85bb3871682d03baff", "normalized_at": "2026-06-20T05:17:39.232371Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_016332
CodeXGLUE Defect Detection
public_dataset
train
20408
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static void pl050_write(void *opaque, hwaddr offset, uint64_t value, unsigned size) { pl050_state *s = (pl050_state *)opaque; switch (offset >> 2) { case 0: /* KMICR */ s->cr = value; pl050_update(s, s->pending); /* ??? Need to implement the enable/dis...
This example comes from CodeXGLUE defect detection. The original dataset provides 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": "fbfecf43e9d354cfae04496563f7bb87d2ccde46", "normalized_at": "2026-06-20T05:17:39.340225Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_010210
CodeXGLUE Defect Detection
public_dataset
train
12729
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
void ff_biweight_h264_pixels8_8_msa(uint8_t *dst, uint8_t *src, int stride, int height, int log2_denom, int weight_dst, int weight_src, int offset) { avc_biwgt_8width_msa(src, stride, ...
This example comes from CodeXGLUE defect detection. The original dataset provides 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": "bcd7bf7eeb09a395cc01698842d1b8be9af483fc", "normalized_at": "2026-06-20T05:17:39.182514Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_013771
CodeXGLUE Defect Detection
public_dataset
train
17168
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static int decode_slice_header(H264Context *h){ MpegEncContext * const s = &h->s; int first_mb_in_slice, pps_id; int num_ref_idx_active_override_flag; static const uint8_t slice_type_map[5]= {P_TYPE, B_TYPE, I_TYPE, SP_TYPE, SI_TYPE}; int slice_type; int default_ref_list_done = 0; 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": "af8aa846fa5b9f2c7dcde451c872426528b8b561", "normalized_at": "2026-06-20T05:17:39.272162Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_011204
CodeXGLUE Defect Detection
public_dataset
train
13957
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
void HELPER(set_cp15)(CPUState *env, uint32_t insn, uint32_t val) { int op1; int op2; int crm; op1 = (insn >> 21) & 7; op2 = (insn >> 5) & 7; crm = insn & 0xf; switch ((insn >> 16) & 0xf) { case 0: /* ID codes. */ if (arm_feature(env, ARM_FEATURE_XSCALE)) ...
This example comes from CodeXGLUE defect detection. The original dataset provides 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": "f101cd885ec148761738638ae42f7c5162b6d445", "normalized_at": "2026-06-20T05:17:39.208917Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_007117
CodeXGLUE Defect Detection
public_dataset
train
8841
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static int xen_pt_msgaddr32_reg_write(XenPCIPassthroughState *s, XenPTReg *cfg_entry, uint32_t *val, uint32_t dev_value, uint32_t valid_mask) { XenPTRegInfo *reg = cfg_entry->reg; uint32_t writable_mask = 0; uint32_t old_addr ...
This example comes from CodeXGLUE defect detection. The original dataset provides 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": "e2779de053b64f023de382fd87b3596613d47d1e", "normalized_at": "2026-06-20T05:17:39.105760Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_016174
CodeXGLUE Defect Detection
public_dataset
train
20217
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static int kvm_put_msrs(CPUState *env, int level) { struct { struct kvm_msrs info; struct kvm_msr_entry entries[100]; } msr_data; struct kvm_msr_entry *msrs = msr_data.entries; int n = 0; kvm_msr_entry_set(&msrs[n++], MSR_IA32_SYSENTER_CS, env->sysenter_cs); kvm_msr_en...
This example comes from CodeXGLUE defect detection. The original dataset provides 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": "b9bec74bcb16519a876ec21cd5277c526a9b512d", "normalized_at": "2026-06-20T05:17:39.336607Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_000483
CodeXGLUE Defect Detection
public_dataset
train
601
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static void json_emit_element(QJSON *json, const char *name) { /* Check whether we need to print a , before an element */ if (json->omit_comma) { json->omit_comma = false; } else { qstring_append(json->str, ", "); } if (name) { qstring_append(json->str, "\""); ...
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": false, "project": "qemu", "commit_id": "17b74b98676aee5bc470b173b1e528d2fce2cf18", "normalized_at": "2026-06-20T05:17:38.929369Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_004938
CodeXGLUE Defect Detection
public_dataset
train
6132
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
void palette8tobgr24(const uint8_t *src, uint8_t *dst, unsigned num_pixels, const uint8_t *palette) { unsigned i; /* writes 1 byte o much and might cause alignment issues on some architectures? for(i=0; i<num_pixels; i++) ((unsigned *)(&dst[i*3])) = ((unsigned *)palette)[ src[i] ]; */ for(i=0; i<num_pixel...
This example comes from CodeXGLUE defect detection. The original dataset provides 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:39.049020Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_002956
CodeXGLUE Defect Detection
public_dataset
train
3622
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
e1000e_write_lgcy_rx_descr(E1000ECore *core, uint8_t *desc, struct NetRxPkt *pkt, const E1000E_RSSInfo *rss_info, uint16_t length) { uint32_t status_flags, rss, mrq; uint16_t ip_id; struct e1000_rx_desc *d = (struct e1...
This example comes from CodeXGLUE defect detection. The original dataset provides 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": "c89d416a2b0fb6a21224186b10af4c4a3feee31b", "normalized_at": "2026-06-20T05:17:38.999196Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_007629
CodeXGLUE Defect Detection
public_dataset
train
9478
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static int get_video_private_data(struct VideoFile *vf, AVCodecContext *codec) { AVIOContext *io = NULL; uint16_t sps_size, pps_size; int err = AVERROR(EINVAL); if (codec->codec_id == AV_CODEC_ID_VC1) return get_private_data(vf, codec); avio_open_dyn_buf(&io); if (codec->extr...
This example comes from CodeXGLUE defect detection. The original dataset provides 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": "224afddc7c869472caa57fc571aaf979a85d24ef", "normalized_at": "2026-06-20T05:17:39.117964Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_000269
CodeXGLUE Defect Detection
public_dataset
train
334
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static int find_vdi_name(BDRVSheepdogState *s, char *filename, uint32_t snapid, char *tag, uint32_t *vid, int for_snapshot) { int ret, fd; SheepdogVdiReq hdr; SheepdogVdiRsp *rsp = (SheepdogVdiRsp *)&hdr; unsigned int wlen, rlen = 0; char buf[SD_MAX_VDI_LEN + SD_MAX_V...
This example comes from CodeXGLUE defect detection. The original dataset provides 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": "3178e2755ec5a7fb1afe583fb6ac2622c2c42184", "normalized_at": "2026-06-20T05:17:38.923703Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_014367
CodeXGLUE Defect Detection
public_dataset
train
17937
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static void audio_init (void) { size_t i; int done = 0; const char *drvname; VMChangeStateEntry *e; AudioState *s = &glob_audio_state; if (s->drv) { return; } QLIST_INIT (&s->hw_head_out); QLIST_INIT (&s->hw_head_in); QLIST_INIT (&s->cap_head); atexit...
This example comes from CodeXGLUE defect detection. The original dataset provides 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": "7e274652e4e2225298a2735c3dcc74f2f8ba7b07", "normalized_at": "2026-06-20T05:17:39.287449Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_019582
CodeXGLUE Defect Detection
public_dataset
train
24465
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static int read_sm_data(AVFormatContext *s, AVIOContext *bc, AVPacket *pkt, int is_meta, int64_t maxpos) { int count = ffio_read_varlen(bc); int skip_start = 0; int skip_end = 0; int channels = 0; int64_t channel_layout = 0; int sample_rate = 0; int width = 0; int height = 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": "bb23a15df507440deb0dcf25099d321d0f73dc28", "normalized_at": "2026-06-20T05:17:39.431320Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_008821
CodeXGLUE Defect Detection
public_dataset
train
10988
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static uint32_t pflash_read (pflash_t *pfl, target_phys_addr_t offset, int width, int be) { target_phys_addr_t boff; uint32_t ret; uint8_t *p; DPRINTF("%s: offset " TARGET_FMT_plx "\n", __func__, offset); ret = -1; if (pfl->rom_mode) { /* Lazy rese...
This example comes from CodeXGLUE defect detection. The original dataset provides 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": "5145b3d1cc4dc77d82086d99b0690a76e1073071", "normalized_at": "2026-06-20T05:17:39.146276Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_009245
CodeXGLUE Defect Detection
public_dataset
train
11506
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
void qemu_system_reset(bool report) { MachineClass *mc; mc = current_machine ? MACHINE_GET_CLASS(current_machine) : NULL; cpu_synchronize_all_states(); if (mc && mc->reset) { mc->reset(); } else { qemu_devices_reset(); } if (report) { qapi_event_send_...
This example comes from CodeXGLUE defect detection. The original dataset provides 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": "aedbe19297907143f17b733a7ff0e0534377bed1", "normalized_at": "2026-06-20T05:17:39.157536Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_003352
CodeXGLUE Defect Detection
public_dataset
train
4113
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static void bdrv_assign_node_name(BlockDriverState *bs, const char *node_name, Error **errp) { if (!node_name) { return; } /* empty string node name is invalid */ if (node_name[0] == '\0') { error_setg(errp, "...
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": false, "project": "qemu", "commit_id": "9aebf3b89281a173d2dfeee379b800be5e3f363e", "normalized_at": "2026-06-20T05:17:39.009980Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_006093
CodeXGLUE Defect Detection
public_dataset
train
7581
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static int decode_exponents(GetBitContext *gbc, int exp_strategy, int ngrps, uint8_t absexp, int8_t *dexps) { int i, j, grp, group_size; int dexp[256]; int expacc, prevexp; /* unpack groups */ group_size = exp_strategy + (exp_strategy == EXP_D45); for(grp=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": "2ceccf045c295b9a507d6e3be7710c63f51c0529", "normalized_at": "2026-06-20T05:17:39.079621Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_000726
CodeXGLUE Defect Detection
public_dataset
train
894
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static int h264_extradata_to_annexb(AVCodecContext *avctx, const int padding) { uint16_t unit_size; uint64_t total_size = 0; uint8_t *out = NULL, unit_nb, sps_done = 0, sps_seen = 0, pps_seen = 0; const uint8_t *extradata ...
This example comes from CodeXGLUE defect detection. The original dataset provides 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": "53c853e0491691d4ee6f33e6348da2ffc7d345d8", "normalized_at": "2026-06-20T05:17:38.935409Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_017530
CodeXGLUE Defect Detection
public_dataset
train
21896
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static hwaddr ppc_hash64_pteg_search(PowerPCCPU *cpu, hwaddr hash, bool secondary, target_ulong ptem, ppc_hash_pte64_t *pte) { CPUPPCState *env = &cpu->env; int i; uint64_t token; target_ulong pte0, pte1; target_ulong ...
This example comes from CodeXGLUE defect detection. The original dataset provides 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": "4322e8ced5aaac7191958f09622d199fe61e2d87", "normalized_at": "2026-06-20T05:17:39.374092Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_020923
CodeXGLUE Defect Detection
public_dataset
train
26150
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
void HELPER(cas2l)(CPUM68KState *env, uint32_t regs, uint32_t a1, uint32_t a2) { uint32_t Dc1 = extract32(regs, 9, 3); uint32_t Dc2 = extract32(regs, 6, 3); uint32_t Du1 = extract32(regs, 3, 3); uint32_t Du2 = extract32(regs, 0, 3); uint32_t c1 = env->dregs[Dc1]; uint32_t c2 = env->dregs[...
This example comes from CodeXGLUE defect detection. The original dataset provides 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": "f0ddf11b23260f0af84fb529486a8f9ba2d19401", "normalized_at": "2026-06-20T05:17:39.463640Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_004986
CodeXGLUE Defect Detection
public_dataset
train
6192
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
int ff_ivi_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { IVI45DecContext *ctx = avctx->priv_data; const uint8_t *buf = avpkt->data; AVFrame *frame = data; int buf_size = avpkt->size; int result, p, b;...
This example comes from CodeXGLUE defect detection. The original dataset provides 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": "e121ac634ba324a318f4a97f978dcfb48da6b735", "normalized_at": "2026-06-20T05:17:39.050196Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_000636
CodeXGLUE Defect Detection
public_dataset
train
786
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
uint32_t HELPER(neon_min_f32)(uint32_t a, uint32_t b) { float32 f0 = make_float32(a); float32 f1 = make_float32(b); return (float32_compare_quiet(f0, f1, NFS) == -1) ? a : b; }
This example comes from CodeXGLUE defect detection. The original dataset provides 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": "4a9f9cb24de52e93aae7539a004dd20314ca1c0c", "normalized_at": "2026-06-20T05:17:38.932741Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_020559
CodeXGLUE Defect Detection
public_dataset
train
25702
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static void qemu_chr_parse_pipe(QemuOpts *opts, ChardevBackend *backend, Error **errp) { const char *device = qemu_opt_get(opts, "path"); ChardevHostdev *dev; if (device == NULL) { error_setg(errp, "chardev: pipe: no device path given"); return; ...
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": false, "project": "qemu", "commit_id": "32bafa8fdd098d52fbf1102d5a5e48d29398c0aa", "normalized_at": "2026-06-20T05:17:39.455095Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_006154
CodeXGLUE Defect Detection
public_dataset
train
7648
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
void *av_malloc(size_t size) { void *ptr = NULL; #if CONFIG_MEMALIGN_HACK long diff; #endif /* let's disallow possible ambiguous cases */ if (size > (max_alloc_size - 32)) return NULL; #if CONFIG_MEMALIGN_HACK ptr = malloc(size + ALIGN); if (!ptr) return 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": false, "project": "FFmpeg", "commit_id": "84be80698227366d970e045001e4b59e4f99f0a1", "normalized_at": "2026-06-20T05:17:39.080864Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_016122
CodeXGLUE Defect Detection
public_dataset
train
20152
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static int tftp_send_oack(struct tftp_session *spt, const char *keys[], uint32_t values[], int nb, struct tftp_t *recv_tp) { struct sockaddr_in saddr, daddr; struct mbuf *m; struct tftp_t *tp; int i, n = 0; m = m_get(spt->slirp); 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": "5379229a2708df3a1506113315214c3ce5325859", "normalized_at": "2026-06-20T05:17:39.335093Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_008918
CodeXGLUE Defect Detection
public_dataset
train
11103
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static int file_write(URLContext *h, const unsigned char *buf, int size) { FileContext *c = h->priv_data; int r = write(c->fd, buf, size); return (-1 == r)?AVERROR(errno):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": false, "project": "FFmpeg", "commit_id": "a8f171151f0f027abb06f72e48c44929616a84cb", "normalized_at": "2026-06-20T05:17:39.148665Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_014837
CodeXGLUE Defect Detection
public_dataset
train
18544
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static void lsp2lpc(int16_t *lpc) { int f1[LPC_ORDER / 2 + 1]; int f2[LPC_ORDER / 2 + 1]; int i, j; /* Calculate negative cosine */ for (j = 0; j < LPC_ORDER; j++) { int index = lpc[j] >> 7; int offset = lpc[j] & 0x7f; int temp1 = cos_tab[index] << 16; ...
This example comes from CodeXGLUE defect detection. The original dataset provides 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": "b74b88f30da2389f333a31815d8326d5576d3331", "normalized_at": "2026-06-20T05:17:39.299694Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
owasp_python_000695
OWASP Benchmark Python
public_dataset
processed
695
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/BenchmarkTest00695.py", "label_source": "data/raw/owasp_benchmark_python/expectedresults-0.1.csv", "normalized_at": "2026-06-20T05:21:00.711009Z", "name_fixed_at": "2026-06-20T05:22:49.836970Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_003617
CodeXGLUE Defect Detection
public_dataset
train
4444
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
size_t slirp_socket_can_recv(struct in_addr guest_addr, int guest_port) { struct iovec iov[2]; struct socket *so; if (!link_up) return 0; so = slirp_find_ctl_socket(guest_addr, guest_port); if (!so || so->so_state & SS_NOFDREF) return 0; if (!CONN_CANFRCV(so) || so->so_snd.sb_cc >= (...
This example comes from CodeXGLUE defect detection. The original dataset provides 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": "b5302e1a9d8a47bd29a3e1876fba34be111728a2", "normalized_at": "2026-06-20T05:17:39.016280Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_009490
CodeXGLUE Defect Detection
public_dataset
train
11804
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static void send_ext_audio_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_height...
This example comes from CodeXGLUE defect detection. The original dataset provides 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.163808Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_004477
CodeXGLUE Defect Detection
public_dataset
train
5545
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
void vncws_handshake_read(void *opaque) { VncState *vs = opaque; uint8_t *handshake_end; long ret; buffer_reserve(&vs->ws_input, 4096); ret = vnc_client_read_buf(vs, buffer_end(&vs->ws_input), 4096); if (!ret) { if (vs->csock == -1) { vnc_disconnect_finish(vs); ...
This example comes from CodeXGLUE defect detection. The original dataset provides 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": "2cdb5e142fb93e875fa53c52864ef5eb8d5d8b41", "normalized_at": "2026-06-20T05:17:39.037533Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_005978
CodeXGLUE Defect Detection
public_dataset
train
7433
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static void qdm2_calculate_fft (QDM2Context *q, int channel, int sub_packet) { const float gain = (q->channels == 1 && q->nb_channels == 2) ? 0.5f : 1.0f; int i; q->fft.complex[channel][0].re *= 2.0f; q->fft.complex[channel][0].im = 0.0f; q->rdft_ctx.rdft_calc(&q->rdft_ctx, (FFTSample *)q->fft...
This example comes from CodeXGLUE defect detection. The original dataset provides 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": "f5be7958e313f3f62505ea7f90007800e8e1dcb5", "normalized_at": "2026-06-20T05:17:39.076784Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_002244
CodeXGLUE Defect Detection
public_dataset
train
2733
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
void numa_cpu_pre_plug(const CPUArchId *slot, DeviceState *dev, Error **errp) { int mapped_node_id; /* set by -numa option */ int node_id = object_property_get_int(OBJECT(dev), "node-id", &error_abort); /* by default CPUState::numa_node was 0 if it wasn't set explicitly * TODO: make it error whe...
This example comes from CodeXGLUE defect detection. The original dataset provides 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": "d41f3e750d2c06c613cb1b8db7724f0fbc0a2b14", "normalized_at": "2026-06-20T05:17:38.978688Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_006161
CodeXGLUE Defect Detection
public_dataset
train
7658
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
void OPPROTO op_divw (void) { if (unlikely(((int32_t)T0 == INT32_MIN && (int32_t)T1 == -1) || (int32_t)T1 == 0)) { T0 = (int32_t)((-1) * ((uint32_t)T0 >> 31)); } else { T0 = (int32_t)T0 / (int32_t)T1; } 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": "6f2d8978728c48ca46f5c01835438508aace5c64", "normalized_at": "2026-06-20T05:17:39.081001Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_013531
CodeXGLUE Defect Detection
public_dataset
train
16865
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
int usb_claim_port(USBDevice *dev) { USBBus *bus = usb_bus_from_device(dev); USBPort *port; assert(dev->port == NULL); if (dev->port_path) { QTAILQ_FOREACH(port, &bus->free, next) { if (strcmp(port->path, dev->port_path) == 0) { break; } ...
This example comes from CodeXGLUE defect detection. The original dataset provides 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": "7d553f27fce284805d7f94603932045ee3bbb979", "normalized_at": "2026-06-20T05:17:39.265962Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_008809
CodeXGLUE Defect Detection
public_dataset
train
10972
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static bool is_zero_cluster_top_locked(BlockDriverState *bs, int64_t start) { BDRVQcow2State *s = bs->opaque; int nr = s->cluster_sectors; uint64_t off; int ret; ret = qcow2_get_cluster_offset(bs, start << BDRV_SECTOR_BITS, &nr, &off); assert(nr == s->cluster_sectors); return 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": "ebb718a5c7240f6ffb308e0d0b67a92c3b63b91c", "normalized_at": "2026-06-20T05:17:39.146071Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
owasp_python_001082
OWASP Benchmark Python
public_dataset
processed
1082
python
generic
security_review
CWE-79
A03: Injection
medium
false
Cross-Site Scripting
''' 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-79" ]
{ "raw_path": "testcode/BenchmarkTest01082.py", "label_source": "data/raw/owasp_benchmark_python/expectedresults-0.1.csv", "normalized_at": "2026-06-20T05:21:00.728776Z", "name_fixed_at": "2026-06-20T05:22:49.841887Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_009329
CodeXGLUE Defect Detection
public_dataset
train
11606
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static int uhci_broadcast_packet(UHCIState *s, USBPacket *p) { UHCIPort *port; USBDevice *dev; int i, ret; #ifdef DEBUG_PACKET { const char *pidstr; switch(p->pid) { case USB_TOKEN_SETUP: pidstr = "SETUP"; break; case USB_TOKEN_IN: pidstr = "IN"; break; ...
This example comes from CodeXGLUE defect detection. The original dataset provides 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": "54f254f973a1b2ed0f3571390f4de060adfe23e8", "normalized_at": "2026-06-20T05:17:39.160193Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_008909
CodeXGLUE Defect Detection
public_dataset
train
11093
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
void ioinst_handle_rsch(S390CPU *cpu, uint64_t reg1) { int cssid, ssid, schid, m; SubchDev *sch; int ret = -ENODEV; int cc; if (ioinst_disassemble_sch_ident(reg1, &m, &cssid, &ssid, &schid)) { program_interrupt(&cpu->env, PGM_OPERAND, 4); return; } trace_ioinst_sc...
This example comes from CodeXGLUE defect detection. The original dataset provides 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": "66dc50f7057b9a0191f54e55764412202306858d", "normalized_at": "2026-06-20T05:17:39.148455Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_016929
CodeXGLUE Defect Detection
public_dataset
train
21151
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
av_cold void ff_huffyuvdsp_init_ppc(HuffYUVDSPContext *c) { #if HAVE_ALTIVEC && HAVE_BIGENDIAN if (!PPC_ALTIVEC(av_get_cpu_flags())) return; c->add_bytes = add_bytes_altivec; #endif /* HAVE_ALTIVEC && HAVE_BIGENDIAN */ }
This example comes from CodeXGLUE defect detection. The original dataset provides 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": "b015872c0d0823e70776e98b865509ec1287e2f6", "normalized_at": "2026-06-20T05:17:39.355692Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_007850
CodeXGLUE Defect Detection
public_dataset
train
9777
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static int64_t nfs_client_open(NFSClient *client, QDict *options, int flags, int open_flags, Error **errp) { int ret = -EINVAL; QemuOpts *opts = NULL; Error *local_err = NULL; struct stat st; char *file = NULL, *strp = NULL; qemu_mutex_init(&client->mutex...
This example comes from CodeXGLUE defect detection. The original dataset provides 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": "f1a7ff770f7d71ee7833ff019aac9d6cc3d13f71", "normalized_at": "2026-06-20T05:17:39.123541Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_013836
CodeXGLUE Defect Detection
public_dataset
train
17247
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static int fill_note_info(struct elf_note_info *info, long signr, const CPUState *env) { #define NUMNOTES 3 CPUState *cpu = NULL; TaskState *ts = (TaskState *)env->opaque; int i; (void) memset(info, 0, sizeof (*info)); TAILQ_INIT(&info->thread_list); info->notes = qemu_mallocz...
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": false, "project": "qemu", "commit_id": "72cf2d4f0e181d0d3a3122e04129c58a95da713e", "normalized_at": "2026-06-20T05:17:39.273861Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_002596
CodeXGLUE Defect Detection
public_dataset
train
3156
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static int64_t asf_read_pts(AVFormatContext *s, int64_t *ppos, int stream_index) { ASFContext *asf = s->priv_data; AVPacket pkt1, *pkt = &pkt1; int64_t pos= *ppos; int64_t pts; // ensure we are on the packet boundry assert(pos % asf->packet_size == 0); url_fseek(&s->pb, pos + 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": "82b9e4a286e904dd402ddf6c914756963b2e2c4d", "normalized_at": "2026-06-20T05:17:38.988734Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_020675
CodeXGLUE Defect Detection
public_dataset
train
25849
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
int ff_h2645_extract_rbsp(const uint8_t *src, int length, H2645NAL *nal, int small_padding) { int i, si, di; uint8_t *dst; int64_t padding = small_padding ? AV_INPUT_BUFFER_PADDING_SIZE : MAX_MBPAIR_SIZE; nal->skipped_bytes = 0; #define STARTCODE_TEST ...
This example comes from CodeXGLUE defect detection. The original dataset provides 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": "382a68b0088b06b8df20d0133d767d53d8f161ef", "normalized_at": "2026-06-20T05:17:39.457731Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_007229
CodeXGLUE Defect Detection
public_dataset
train
8979
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static GtkWidget *gd_create_menu_view(GtkDisplayState *s, GtkAccelGroup *accel_group) { GSList *group = NULL; GtkWidget *view_menu; GtkWidget *separator; int i; view_menu = gtk_menu_new(); gtk_menu_set_accel_group(GTK_MENU(view_menu), accel_group); s->full_screen_item = ...
This example comes from CodeXGLUE defect detection. The original dataset provides 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": "b1e749c02172583ca85bb3a964a9b39221f9ac39", "normalized_at": "2026-06-20T05:17:39.108268Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
owasp_python_000252
OWASP Benchmark Python
public_dataset
processed
252
python
generic
security_review
CWE-328
A02: Cryptographic Failures
medium
false
Weak Hashing Algorithm
''' OWASP Benchmark for Python v0.1 This file is part of the Open Web Application Security Project (OWASP) Benchmark Project. For details, please see https://owasp.org/www-project-benchmark. The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms of the GNU General Public Licens...
This example was normalized from OWASP Benchmark Python. It is intended for security review and vulnerability detection. A secure repair is not included in this source-specific normalized record.
[ "owasp", "benchmark-python", "python", "cwe-328" ]
{ "raw_path": "testcode/BenchmarkTest00252.py", "label_source": "data/raw/owasp_benchmark_python/expectedresults-0.1.csv", "normalized_at": "2026-06-20T05:21:00.691506Z", "name_fixed_at": "2026-06-20T05:22:49.829561Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_012771
CodeXGLUE Defect Detection
public_dataset
train
15896
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
void tb_invalidate_phys_page_range(tb_page_addr_t start, tb_page_addr_t end, int is_cpu_write_access) { TranslationBlock *tb, *tb_next; #if defined(TARGET_HAS_PRECISE_SMC) CPUState *cpu = current_cpu; CPUArchState *env = NULL; #endif tb_page_addr_t tb_start, tb...
This example comes from CodeXGLUE defect detection. The original dataset provides 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": "9b990ee5a3cc6aa38f81266fb0c6ef37a36c45b9", "normalized_at": "2026-06-20T05:17:39.248238Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_005351
CodeXGLUE Defect Detection
public_dataset
train
6649
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static int mig_save_device_bulk(QEMUFile *f, BlkMigDevState *bmds) { int64_t total_sectors = bmds->total_sectors; int64_t cur_sector = bmds->cur_sector; BlockDriverState *bs = bmds->bs; BlkMigBlock *blk; int nr_sectors; if (bmds->shared_base) { qemu_mutex_lock_iothread(); ...
This example comes from CodeXGLUE defect detection. The original dataset provides 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": "5839e53bbc0fec56021d758aab7610df421ed8c8", "normalized_at": "2026-06-20T05:17:39.060118Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_008189
CodeXGLUE Defect Detection
public_dataset
train
10186
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
static int xhci_submit(XHCIState *xhci, XHCITransfer *xfer, XHCIEPContext *epctx) { uint64_t mfindex; DPRINTF("xhci_submit(slotid=%d,epid=%d)\n", xfer->slotid, xfer->epid); xfer->in_xfer = epctx->type>>2; switch(epctx->type) { case ET_INTR_OUT: case ET_INTR_IN: xfer->pkts =...
This example comes from CodeXGLUE defect detection. The original dataset provides 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": "ddb603ab6c981c1d67cb42266fc700c33e5b2d8f", "normalized_at": "2026-06-20T05:17:39.130850Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_012936
CodeXGLUE Defect Detection
public_dataset
train
16101
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
QEMUPutLEDEntry *qemu_add_led_event_handler(QEMUPutLEDEvent *func, void *opaque) { QEMUPutLEDEntry *s; s = g_malloc0(sizeof(QEMUPutLEDEntry)); s->put_led = func; s->opaque = opaque; QTAILQ_INSERT_TAIL(&led_handlers, s, next); return 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": "fedf0d35aafc4f1f1e5f6dbc80cb23ae1ae49f0b", "normalized_at": "2026-06-20T05:17:39.252387Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_014324
CodeXGLUE Defect Detection
public_dataset
train
17880
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
host_memory_backend_get_host_nodes(Object *obj, Visitor *v, const char *name, void *opaque, Error **errp) { HostMemoryBackend *backend = MEMORY_BACKEND(obj); uint16List *host_nodes = NULL; uint16List **node = &host_nodes; unsigned long value; value = find_...
This example comes from CodeXGLUE defect detection. The original dataset provides 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": "658ae5a7b90139a6a296cd4cd83643d843964796", "normalized_at": "2026-06-20T05:17:39.285992Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_018369
CodeXGLUE Defect Detection
public_dataset
train
22933
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static int videotoolbox_buffer_create(AVCodecContext *avctx, AVFrame *frame) { VTContext *vtctx = avctx->internal->hwaccel_priv_data; CVPixelBufferRef pixbuf = (CVPixelBufferRef)vtctx->frame; OSType pixel_format = CVPixelBufferGetPixelFormatType(pixbuf); enum AVPixelFormat sw_format = av_map_videot...
This example comes from CodeXGLUE defect detection. The original dataset provides 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": "02d248d5828dbbfecfb37597c626900f41448bea", "normalized_at": "2026-06-20T05:17:39.397814Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_013492
CodeXGLUE Defect Detection
public_dataset
train
16820
c
generic
vulnerability_detection
unknown
unknown
unknown
false
unknown_defect_or_vulnerability
void async_context_pop(void) { }
This example comes from CodeXGLUE defect detection. The original dataset provides 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": "4e59b545868a5ee5f59b346337f0c44209929334", "normalized_at": "2026-06-20T05:17:39.265025Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }
codexglue_train_006180
CodeXGLUE Defect Detection
public_dataset
train
7683
c
generic
vulnerability_detection
unknown
unknown
unknown
true
unknown_defect_or_vulnerability
static void escaped_string(void) { int i; struct { const char *encoded; const char *decoded; int skip; } test_cases[] = { { "\"\\b\"", "\b" }, { "\"\\f\"", "\f" }, { "\"\\n\"", "\n" }, { "\"\\r\"", "\r" }, { "\"\\t\"", "\t" }, ...
This example comes from CodeXGLUE defect detection. The original dataset provides a binary target label but does not provide a specific CWE label or secure fix.
[ "codexglue", "defect-detection", "c-language", "binary-label" ]
{ "original_target": true, "project": "qemu", "commit_id": "aec4b054ea36c53c8b887da99f20010133b84378", "normalized_at": "2026-06-20T05:17:39.081615Z", "combined_dataset_split": "train", "combined_at": "2026-06-20T05:23:08.742901Z" }