label int64 | source_dataset string | function_id string | repo string | commit_hash string | commit_date int64 | file_path string | function_name string | language string | raw_source string | normalized_source string | cve_id string | cwe_ids string | case_label string | mentioned_in_desc bool |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | vulnerable | 1007854b99960a7188a0be1651990685 | gpac/gpac | c70f49dda4946d6db6aa55588f6a756b76bd84ea | 1,697,112,494 | src/isomedia/movie_fragments.c | UpdateRuns | c | static
u32 UpdateRuns(GF_ISOFile *movie, GF_TrackFragmentBox *traf)
{
u32 sampleCount, i, j, RunSize, RunDur, RunFlags, NeedFlags, UseCTS;
/* enum:
0 - use values per sample in the trun box
1 - use default values from track fragment header
2 - use default values from track extends header */
u32 UseDefaul... | static u32 UpdateRuns(GF_ISOFile *movie, GF_TrackFragmentBox *traf) { u32 sampleCount, i, j, RunSize, RunDur, RunFlags, NeedFlags, UseCTS; u32 UseDefaultSize, UseDefaultDur, UseDefaultFlag; GF_TrackFragmentRunBox *trun; GF_TrunEntry *ent; sampleCount = 0; #ifndef USE_BASE_DATA_OFFSET if (movie->use_segments) { traf->tf... | CVE-2023-48011 | CWE-416 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | b440bd78293106f704a6a6100eaaf600 | gpac/gpac | cd8a95c1efb8f5bfc950b86c2ef77b4c76f6b893 | 1,697,113,051 | src/filters/isoffin_read_ch.c | isor_reader_get_sample | c | void isor_reader_get_sample(ISOMChannel *ch)
{
GF_Err e;
Bool skip_sample=GF_FALSE;
u32 sample_desc_index;
if (ch->sample) return;
if (ch->next_track) {
ch->track = ch->next_track;
if (!ch->owner->nodata)
gf_isom_set_sample_alloc(ch->owner->mov, ch->track, isor_sample_alloc, ch);
ch->next_track = 0;
}
... | void isor_reader_get_sample(ISOMChannel *ch) { GF_Err e; Bool skip_sample=GF_FALSE; u32 sample_desc_index; if (ch->sample) return; if (ch->next_track) { ch->track = ch->next_track; if (!ch->owner->nodata) gf_isom_set_sample_alloc(ch->owner->mov, ch->track, isor_sample_alloc, ch); ch->next_track = 0; } if (ch->to_init) ... | CVE-2023-48013 | CWE-415 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 7043dbd2bc4e354e44ad5c98c5f00550 | strukturag/libde265 | e36b4a1b0bafa53df47514c419d5be3e8916ebc7 | 1,699,104,050 | libde265/slice.cc | slice_segment_header::dump_slice_segment_header | cpp | void slice_segment_header::dump_slice_segment_header(const decoder_context* ctx, int fd) const
{
FILE* fh;
if (fd==1) fh=stdout;
else if (fd==2) fh=stderr;
else { return; }
#define LOG0(t) log2fh(fh, t)
#define LOG1(t,d) log2fh(fh, t,d)
#define LOG2(t,d1,d2) log2fh(fh, t,d1,d2)
#define LOG3(t,d1,d2,d3) log2fh(... | void slice_segment_header::dump_slice_segment_header(const decoder_context* ctx, int fd) const { FILE* fh; if (fd==1) fh=stdout; else if (fd==2) fh=stderr; else { return; } #define LOG0(t) log2fh(fh, t) #define LOG1(t,d) log2fh(fh, t,d) #define LOG2(t,d1,d2) log2fh(fh, t,d1,d2) #define LOG3(t,d1,d2,d3) log2fh(fh, t,d1,... | CVE-2023-47471 | CWE-120 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 8eed4e944120f78fd7126b8dd18adfb8 | vim/vim | cb0b99f0672d8446585d26e998343dceca17d1ce | 1,699,985,159 | src/move.c | adjust_plines_for_skipcol | c | int
adjust_plines_for_skipcol(win_T *wp)
{
if (wp->w_skipcol == 0)
return 0;
int width = wp->w_width - win_col_off(wp);
if (wp->w_skipcol >= width)
return (wp->w_skipcol - width) / (width + win_col_off2(wp)) + 1;
return 0;
} | int adjust_plines_for_skipcol(win_T *wp) { if (wp->w_skipcol == 0) return 0; int width = wp->w_width - win_col_off(wp); if (wp->w_skipcol >= width) return (wp->w_skipcol - width) / (width + win_col_off2(wp)) + 1; return 0; } | CVE-2023-48232 | CWE-755 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 24e018f1e8241654b28858dd059d1ce8 | vim/vim | ac63787734fda2e294e477af52b3bd601517fa78 | 1,699,987,548 | src/ex_cmds.c | ex_substitute | c | void
ex_substitute(exarg_T *eap)
{
linenr_T lnum;
long i = 0;
regmmatch_T regmatch;
static subflags_T subflags = {FALSE, FALSE, FALSE, TRUE, FALSE,
FALSE, FALSE, 0};
#ifdef FEAT_EVAL
subflags_T subflags_save;
#endif
int save_do_all; // remember user specified 'g' flag
int sav... | void ex_substitute(exarg_T *eap) { linenr_T lnum; long i = 0; regmmatch_T regmatch; static subflags_T subflags = {FALSE, FALSE, FALSE, TRUE, FALSE, FALSE, FALSE, 0}; #ifdef FEAT_EVAL subflags_T subflags_save; #endif int save_do_all; int save_do_ask; char_u *pat = NULL, *sub = NULL; char_u *sub_copy = NULL; int delimite... | CVE-2023-48233 | CWE-190 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 04e24d1ccfee09aaf5267d30fedba3b6 | vim/vim | 58f9befca1fa172068effad7f2ea5a9d6a7b0cca | 1,699,988,550 | src/normal.c | nv_z_get_count | c | static int
nv_z_get_count(cmdarg_T *cap, int *nchar_arg)
{
int nchar = *nchar_arg;
long n;
// "z123{nchar}": edit the count before obtaining {nchar}
if (checkclearop(cap->oap))
return FALSE;
n = nchar - '0';
for (;;)
{
#ifdef USE_ON_FLY_SCROLL
dont_scroll = TRUE; // disallow scrolling ... | static int nv_z_get_count(cmdarg_T *cap, int *nchar_arg) { int nchar = *nchar_arg; long n; if (checkclearop(cap->oap)) return FALSE; n = nchar - '0'; for (;;) { #ifdef USE_ON_FLY_SCROLL dont_scroll = TRUE; #endif ++no_mapping; ++allow_keys; nchar = plain_vgetc(); LANGMAP_ADJUST(nchar, TRUE); --no_mapping; --allow_keys;... | CVE-2023-48234 | CWE-190 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 883b4655265bdebef624297bfba9d07f | vim/vim | 060623e4a3bc72b011e7cd92bedb3bfb64e06200 | 1,699,990,409 | src/ex_docmd.c | get_address | c | static linenr_T
get_address(
exarg_T *eap UNUSED,
char_u **ptr,
cmd_addr_T addr_type,
int skip, // only skip the address, don't use it
int silent, // no errors or side effects
int to_other_file, // flag: may jump to other file
int address_count UNUSED) // 1 for first address, >1 after... | static linenr_T get_address( exarg_T *eap UNUSED, char_u **ptr, cmd_addr_T addr_type, int skip, int silent, int to_other_file, int address_count UNUSED) { int c; int i; long n; char_u *cmd; pos_T pos; pos_T *fp; linenr_T lnum; buf_T *buf; cmd = skipwhite(*ptr); lnum = MAXLNUM; do { switch (*cmd) { case '.': ++cmd; swit... | CVE-2023-48235 | CWE-190 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | b61fa039b30c1a58808c201fddfb6186 | vim/vim | 73b2d3790cad5694fc0ed0db2926e4220c48d968 | 1,699,991,906 | src/misc1.c | get_number | c | int
get_number(
int colon, // allow colon to abort
int *mouse_used)
{
int n = 0;
int c;
int typed = 0;
if (mouse_used != NULL)
*mouse_used = FALSE;
// When not printing messages, the user won't know what to type, return a
// zero (as if CR was hit).
if (msg_silent != 0)
... | int get_number( int colon, int *mouse_used) { int n = 0; int c; int typed = 0; if (mouse_used != NULL) *mouse_used = FALSE; if (msg_silent != 0) return 0; #ifdef USE_ON_FLY_SCROLL dont_scroll = TRUE; #endif ++no_mapping; ++allow_keys; for (;;) { windgoto(msg_row, msg_col); c = safe_vgetc(); if (VIM_ISDIGIT(c)) { n = n ... | CVE-2023-48236 | CWE-190 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 7d69f47acae46cdfa6722f70db90d5d3 | vim/vim | 6bf131888a3d1de62bbfa8a7ea03c0ddccfd496e | 1,699,994,579 | src/ops.c | shift_line | c | void
shift_line(
int left,
int round,
int amount,
int call_changed_bytes) // call changed_bytes()
{
int count;
int i, j;
int sw_val = (int)get_sw_value_indent(curbuf);
count = get_indent(); // get current indent
if (round) // round off indent
{
i = count / sw_val; // numb... | void shift_line( int left, int round, int amount, int call_changed_bytes) { int count; int i, j; int sw_val = (int)get_sw_value_indent(curbuf); count = get_indent(); if (round) { i = count / sw_val; j = count % sw_val; if (j && left) --amount; if (left) { i -= amount; if (i < 0) i = 0; } else i += amount; count = i * s... | CVE-2023-48237 | CWE-190 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | 1589f4a978094356e20a0a853dba0cfc | ImageMagick/ImageMagick | aa673b2e4defc7cad5bec16c4fc8324f71e531f1 | 1,695,547,699 | coders/bmp.c | ReadBMPImage | c | static Image *ReadBMPImage(const ImageInfo *image_info,ExceptionInfo *exception)
{
BMPInfo
bmp_info;
Image
*image;
MagickBooleanType
status;
MagickOffsetType
offset,
profile_data,
profile_size,
start_position;
MagickSizeType
blob_size;
MemoryInfo
*pixel_info;
Quan... | static Image *ReadBMPImage(const ImageInfo *image_info,ExceptionInfo *exception) { BMPInfo bmp_info; Image *image; MagickBooleanType status; MagickOffsetType offset, profile_data, profile_size, start_position; MagickSizeType blob_size; MemoryInfo *pixel_info; Quantum index, *q; size_t bit, bytes_per_line, length; ssize... | CVE-2023-5341 | CWE-416 | SINGLE_FUNCTION_NO_MENTION | false |
1 | vulnerable | e15aa37fab18faeb7a818de170709412 | gpac/gpac | 73db5ca656ef5b179ee9d7ed399877a018d53730 | 1,701,679,965 | src/utils/xml_parser.c | on_dom_node_start | c | static void on_dom_node_start(void *cbk, const char *name, const char *ns, const GF_XMLAttribute *attributes, u32 nb_attributes)
{
u32 i;
GF_DOMParser *par = (GF_DOMParser *) cbk;
GF_XMLNode *node;
if (par->root && !gf_list_count(par->stack)) {
par->parser->suspended = GF_TRUE;
return;
}
GF_SAFEALLOC(node, ... | static void on_dom_node_start(void *cbk, const char *name, const char *ns, const GF_XMLAttribute *attributes, u32 nb_attributes) { u32 i; GF_DOMParser *par = (GF_DOMParser *) cbk; GF_XMLNode *node; if (par->root && !gf_list_count(par->stack)) { par->parser->suspended = GF_TRUE; return; } GF_SAFEALLOC(node, GF_XMLNode);... | CVE-2023-48039 | CWE-401 | SINGLE_FUNCTION_NO_MENTION | false |
End of preview. Expand in Data Studio
No dataset card yet
- Downloads last month
- 8