func
string
target
int64
cwe
list
project
string
commit_id
string
hash
float64
size
int64
message
string
static void render_memory_region(FlatView *view, MemoryRegion *mr, Int128 base, AddrRange clip, bool readonly) { MemoryRegion *subregion; unsigned i; hwaddr offset_in_region; ...
0
[ "CWE-476" ]
unicorn
3d3deac5e6d38602b689c4fef5dac004f07a2e63
1,345,883,255,192,811,000,000,000,000,000,000,000
74
Fix crash when mapping a big memory and calling uc_close
evutil_load_windows_system_library_(const TCHAR *library_name) { TCHAR path[MAX_PATH]; unsigned n; n = GetSystemDirectory(path, MAX_PATH); if (n == 0 || n + _tcslen(library_name) + 2 >= MAX_PATH) return 0; _tcscat(path, TEXT("\\")); _tcscat(path, library_name); return LoadLibrary(path); }
0
[ "CWE-119", "CWE-787" ]
libevent
329acc18a0768c21ba22522f01a5c7f46cacc4d5
127,748,495,027,523,860,000,000,000,000,000,000,000
11
evutil_parse_sockaddr_port(): fix buffer overflow @asn-the-goblin-slayer: "Length between '[' and ']' is cast to signed 32 bit integer on line 1815. Is the length is more than 2<<31 (INT_MAX), len will hold a negative value. Consequently, it will pass the check at line 1816. Segfault happens at line 1819. ...
bool RateTransposer::isAAFilterEnabled() const { return bUseAAFilter; }
0
[ "CWE-617" ]
soundtouch
107f2c5d201a4dfea1b7f15c5957ff2ac9e5f260
21,810,757,201,531,230,000,000,000,000,000,000,000
4
Replaced illegal-number-of-channel assertions with run-time exception
at_bitmap input_bmp_reader(gchar * filename, at_input_opts_type * opts, at_msg_func msg_func, gpointer msg_data, gpointer user_data) { FILE *fd; unsigned char buffer[128]; int ColormapSize, rowbytes, Maps; gboolean Grey = FALSE; unsigned char ColorMap[256][3]; at_bitmap image = at_bitmap_init(0, 0, 0, 1); ...
0
[ "CWE-787" ]
autotrace
e96bffadc25ff0ba0e10745f8012efcc5f920ea9
219,482,592,018,173,200,000,000,000,000,000,000,000
354
input-bmp: Increase header buffer in some cases Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
static inline MagickBooleanType IsPoint(const char *point) { char *p; double value; value=GetDrawValue(point,&p); return((fabs(value) < MagickEpsilon) && (p == point) ? MagickFalse : MagickTrue); }
0
[]
ImageMagick
f4cdb3f3aab28273960ffacf1d356312b56ffd27
56,224,255,595,141,590,000,000,000,000,000,000,000
12
https://github.com/ImageMagick/ImageMagick/issues/3338
JSON::checkSchemaInternal(JSON_value* this_v, JSON_value* sch_v, std::list<std::string>& errors, std::string prefix) { JSON_array* this_arr = dynamic_cast<JSON_array*>(this_v); JSON_dictionary* this_dict = dynamic_cast<JSON_dictionary*>(this_v); JSON_arra...
0
[ "CWE-787" ]
qpdf
d71f05ca07eb5c7cfa4d6d23e5c1f2a800f52e8e
66,457,970,582,691,330,000,000,000,000,000,000,000
91
Fix sign and conversion warnings (major) This makes all integer type conversions that have potential data loss explicit with calls that do range checks and raise an exception. After this commit, qpdf builds with no warnings when -Wsign-conversion -Wconversion is used with gcc or clang or when -W3 -Wd4800 is used with ...
void CLASS parse_minolta(int base) { int save, tag, len, offset, high = 0, wide = 0, i, c; short sorder = order; fseek(ifp, base, SEEK_SET); if (fgetc(ifp) || fgetc(ifp) - 'M' || fgetc(ifp) - 'R') return; order = fgetc(ifp) * 0x101; offset = base + get4() + 8; #ifdef LIBRAW_LIBRARY_BUILD if(offset>if...
0
[ "CWE-703", "CWE-835" ]
LibRaw
e47384546b43d0fd536e933249047bc397a4d88b
292,478,406,593,109,660,000,000,000,000,000,000,000
92
Secunia Advisory SA83050: possible infinite loop in parse_minolta()
static int mywrite(const ut8 *buf, int len) { return r_cons_memcat ((const char *)buf, len); }
0
[ "CWE-415", "CWE-703" ]
radare2
cb8b683758edddae2d2f62e8e63a738c39f92683
43,898,373,347,486,300,000,000,000,000,000,000,000
3
Fix #16303 - c->table_query double free (#16318)
static int descriptor_extended_sec_desc_propagation(struct ldb_module *module, struct ldb_request *req) { struct descriptor_data *descriptor_private = talloc_get_type_abort(ldb_module_get_private(module), struct descriptor_data); struct descriptor_transaction *t = &descriptor_private->transaction; stru...
0
[ "CWE-200" ]
samba
0a3aa5f908e351201dc9c4d4807b09ed9eedff77
36,373,863,621,407,610,000,000,000,000,000,000,000
127
CVE-2022-32746 ldb: Make use of functions for appending to an ldb_message This aims to minimise usage of the error-prone pattern of searching for a just-added message element in order to make modifications to it (and potentially finding the wrong element). BUG: https://bugzilla.samba.org/show_bug.cgi?id=15009 Signed...
void yang_get_default_ipv6p(union prefixptr var, const char *xpath_fmt, ...) { char xpath[XPATH_MAXLEN]; const char *value; va_list ap; va_start(ap, xpath_fmt); vsnprintf(xpath, sizeof(xpath), xpath_fmt, ap); va_end(ap); value = yang_get_default_value(xpath); yang_str2ipv6p(value, var); }
0
[ "CWE-119", "CWE-787" ]
frr
ac3133450de12ba86c051265fc0f1b12bc57b40c
315,997,986,613,110,620,000,000,000,000,000,000,000
13
isisd: fix #10505 using base64 encoding Using base64 instead of the raw string to encode the binary data. Signed-off-by: whichbug <whichbug@github.com>
\param step_frame Step applied between each frame. \param[out] voxel_size Voxel size, as stored in the filename. \param[out] description Description, as stored in the filename. **/ CImgList<T>& load_tiff(const char *const filename, const unsigned int first_frame=0, const unsigned i...
0
[ "CWE-125" ]
CImg
10af1e8c1ad2a58a0a3342a856bae63e8f257abb
198,685,022,813,659,330,000,000,000,000,000,000,000
47
Fix other issues in 'CImg<T>::load_bmp()'.
GF_Err gf_isom_modify_cts_offset(GF_ISOFile *the_file, u32 trackNumber, u32 sample_number, u32 offset) { GF_TrackBox *trak = gf_isom_get_track_from_file(the_file, trackNumber); if (!trak) return GF_BAD_PARAM; if (!trak->Media->information->sampleTable->CompositionOffset) return GF_BAD_PARAM; if (!trak->Media->infor...
0
[ "CWE-476" ]
gpac
ebfa346eff05049718f7b80041093b4c5581c24e
108,938,023,160,131,630,000,000,000,000,000,000,000
10
fixed #1706
hook_completion (struct t_weechat_plugin *plugin, const char *completion_item, const char *description, t_hook_callback_completion *callback, void *callback_data) { struct t_hook *new_hook; struct t_hook_completion *new_hook_completion; int priority; const char *ptr_com...
0
[ "CWE-20" ]
weechat
efb795c74fe954b9544074aafcebb1be4452b03a
261,262,466,980,259,800,000,000,000,000,000,000,000
38
core: do not call shell to execute command in hook_process (fix security problem when a plugin/script gives untrusted command) (bug #37764)
int print_chars(FILE *out, const char *text, int cnt) { int total = 0; char *esc; if (text == NULL) { fprintf(out, "nil"); return 3; } if (cnt < 0) cnt = strlen(text); esc = escape(text, cnt, NULL); total = strlen(esc); if (out != NULL) fprintf(out, "%s"...
0
[]
augeas
1a66739c3fc14b3257af5d4a32d0a2a714a7b39d
105,066,072,569,986,360,000,000,000,000,000,000,000
19
* src/transform.c (xread_file): catch failed fopen, e.g. EACCES
main(int argc, char **argv) { const char *safepath = SAFE_PATH; const char *confpath = NULL; char *shargv[] = { NULL, NULL }; char *sh; const char *cmd; char cmdline[LINE_MAX]; char myname[_PW_NAME_LEN + 1]; struct passwd *original_pw, *target_pw; struct rule *rule; uid_t uid; uid_t target = 0; gid_t groups...
0
[ "CWE-1187", "CWE-908" ]
doas
2f83222829448e5bc4c9391d607ec265a1e06531
296,602,473,638,866,300,000,000,000,000,000,000,000
292
Added optimization to Makefile (can be set/overruled using OPT). Added flag to display all warnings during compiling. Added status checks when parsing user/group IDs for Linux. Make sure Linux drops original user's groups when running as another user.
static void sql_print_error(const char *format,...) { va_list args; va_start(args, format); error_or_warning(format, args, "ERROR"); va_end(args); }
0
[ "CWE-284", "CWE-295" ]
mysql-server
3bd5589e1a5a93f9c224badf983cd65c45215390
213,242,634,499,284,100,000,000,000,000,000,000,000
7
WL#6791 : Redefine client --ssl option to imply enforced encryption # Changed the meaning of the --ssl=1 option of all client binaries to mean force ssl, not try ssl and fail over to eunecrypted # Added a new MYSQL_OPT_SSL_ENFORCE mysql_options() option to specify that an ssl connection is required. # Added a new macr...
u32 gf_isom_is_media_encrypted(GF_ISOFile *the_file, u32 trackNumber, u32 sampleDescriptionIndex) { GF_TrackBox *trak; u32 i, count; GF_ProtectionSchemeInfoBox *sinf; trak = gf_isom_get_track_from_file(the_file, trackNumber); if (!trak) return 0; count = gf_list_count(trak->Media->information->sampleTable->Sampl...
0
[ "CWE-476" ]
gpac
3b84ffcbacf144ce35650df958432f472b6483f8
14,495,135,391,881,853,000,000,000,000,000,000,000
23
fixed #1735
static av_cold int encode_init(AVCodecContext *avctx) { MpegEncContext *s = avctx->priv_data; int ret; static int done = 0; if (avctx->width >= (1<<13) || avctx->height >= (1<<13)) { av_log(avctx, AV_LOG_ERROR, "dimensions too large for MPEG-4\n"); return AVERROR(EINVAL); } if ...
0
[ "CWE-20" ]
FFmpeg
6bbef938839adc55e8e048bc9cc2e0fafe2064df
82,982,947,945,556,110,000,000,000,000,000,000,000
50
avcodec/mpeg4videoenc: Use 64 bit for times in mpeg4_encode_gop_header() Fixes truncation Fixes Assertion n <= 31 && value < (1U << n) failed at libavcodec/put_bits.h:169 Fixes: ffmpeg_crash_2.avi Found-by: Thuan Pham <thuanpv@comp.nus.edu.sg>, Marcel Böhme, Andrew Santosa and Alexandru RazvanCaciulescu with AFLSmart...
map_position_value(OnigEncoding enc, int i) { static const short int Vals[] = { 5, 1, 1, 1, 1, 1, 1, 1, 1, 10, 10, 1, 1, 10, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 12, 4, 7, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6...
0
[ "CWE-476", "CWE-125" ]
oniguruma
c509265c5f6ae7264f7b8a8aae1cfa5fc59d108c
265,634,098,564,620,900,000,000,000,000,000,000,000
22
Fix CVE-2019-13225: problem in converting if-then-else pattern to bytecode.
static uint64_t lsi_io_read(void *opaque, hwaddr addr, unsigned size) { LSIState *s = opaque; return lsi_reg_readb(s, addr & 0xff); }
0
[ "CWE-835" ]
qemu
de594e47659029316bbf9391efb79da0a1a08e08
80,374,612,693,527,350,000,000,000,000,000,000,000
6
scsi: lsi: exit infinite loop while executing script (CVE-2019-12068) When executing script in lsi_execute_script(), the LSI scsi adapter emulator advances 's->dsp' index to read next opcode. This can lead to an infinite loop if the next opcode is empty. Move the existing loop exit after 10k iterations so that it cove...
bool operator!=(const char* rhs) const { return getStringView() != absl::NullSafeStringView(rhs); }
0
[]
envoy
2c60632d41555ec8b3d9ef5246242be637a2db0f
193,515,900,045,528,900,000,000,000,000,000,000,000
3
http: header map security fixes for duplicate headers (#197) Previously header matching did not match on all headers for non-inline headers. This patch changes the default behavior to always logically match on all headers. Multiple individual headers will be logically concatenated with ',' similar to what is done with...
static Image *ReadJP2Image(const ImageInfo *image_info,ExceptionInfo *exception) { const char *option; Image *image; int jp2_status; MagickBooleanType status; opj_codec_t *jp2_codec; opj_codestream_index_t *codestream_index = (opj_codestream_index_t *) NULL; opj_dparameters_t...
0
[ "CWE-20", "CWE-703" ]
ImageMagick
f13c6b54a879aaa771ec64b5a066b939e8f8e7f0
299,336,742,996,905,570,000,000,000,000,000,000,000
262
https://github.com/ImageMagick/ImageMagick/issues/501
params_add_cattrs (MonoDynamicImage *assembly, MonoArray *pinfo) { int i; if (!pinfo) return; for (i = 0; i < mono_array_length (pinfo); ++i) { MonoReflectionParamBuilder *pb; pb = mono_array_get (pinfo, MonoReflectionParamBuilder *, i); if (!pb) continue; mono_image_add_cattrs (assembly, pb->table_idx...
0
[ "CWE-20" ]
mono
4905ef1130feb26c3150b28b97e4a96752e0d399
36,143,257,140,483,990,000,000,000,000,000,000,000
13
Handle invalid instantiation of generic methods. * verify.c: Add new function to internal verifier API to check method instantiations. * reflection.c (mono_reflection_bind_generic_method_parameters): Check the instantiation before returning it. Fixes #655847
psutil_proc_cwd(PyObject *self, PyObject *args) { long pid; int pid_return; if (! PyArg_ParseTuple(args, "l", &pid)) return NULL; pid_return = psutil_pid_is_running(pid); if (pid_return == 0) return NoSuchProcess(""); if (pid_return == -1) return NULL; return psuti...
0
[ "CWE-415" ]
psutil
7d512c8e4442a896d56505be3e78f1156f443465
326,424,043,893,631,900,000,000,000,000,000,000,000
15
Use Py_CLEAR instead of Py_DECREF to also set the variable to NULL (#1616) These files contain loops that convert system data into python objects and during the process they create objects and dereference their refcounts after they have been added to the resulting list. However, in case of errors during the creat...
inline void FullyConnected(const uint8* input_data, const Dims<4>& input_dims, int32 input_offset, const uint8* filter_data, const Dims<4>& filter_dims, int32 filter_offset, const int32* bias_data, const Dims<4>& bias_dims, ...
0
[ "CWE-703", "CWE-835" ]
tensorflow
dfa22b348b70bb89d6d6ec0ff53973bacb4f4695
276,402,120,021,832,380,000,000,000,000,000,000,000
24
Prevent a division by 0 in average ops. PiperOrigin-RevId: 385184660 Change-Id: I7affd4554f9b336fca29ac68f633232c094d0bd3
int vnc_init_func(void *opaque, QemuOpts *opts, Error **errp) { Error *local_err = NULL; char *id = (char *)qemu_opts_id(opts); assert(id); vnc_display_init(id, &local_err); if (local_err) { error_propagate(errp, local_err); return -1; } vnc_display_open(id, &local_err); ...
0
[ "CWE-401" ]
qemu
6bf21f3d83e95bcc4ba35a7a07cc6655e8b010b0
165,740,950,722,990,590,000,000,000,000,000,000,000
18
vnc: fix memory leak when vnc disconnect Currently when qemu receives a vnc connect, it creates a 'VncState' to represent this connection. In 'vnc_worker_thread_loop' it creates a local 'VncState'. The connection 'VcnState' and local 'VncState' exchange data in 'vnc_async_encoding_start' and 'vnc_async_encoding_end'. ...
static void bus_reset_tasklet(unsigned long data) { struct fw_ohci *ohci = (struct fw_ohci *)data; int self_id_count, i, j, reg; int generation, new_generation; unsigned long flags; void *free_rom = NULL; dma_addr_t free_rom_bus = 0; reg = reg_read(ohci, OHCI1394_NodeID); if (!(reg & OHCI1394_NodeID_idValid)) ...
0
[ "CWE-399" ]
linux-2.6
8c0c0cc2d9f4c523fde04bdfe41e4380dec8ee54
116,069,560,032,360,380,000,000,000,000,000,000,000
130
firewire: ohci: handle receive packets with a data length of zero Queueing to receive an ISO packet with a payload length of zero silently does nothing in dualbuffer mode, and crashes the kernel in packet-per-buffer mode. Return an error in dualbuffer mode, because the DMA controller won't let us do what we want, and...
static void guess_dc(ERContext *s, int16_t *dc, int w, int h, ptrdiff_t stride, int is_luma) { int b_x, b_y; int16_t (*col )[4] = av_malloc_array(stride, h*sizeof( int16_t)*4); uint32_t (*dist)[4] = av_malloc_array(stride, h*sizeof(uint32_t)*4); if(!col || !dist) { av_log(...
0
[ "CWE-20", "CWE-617" ]
FFmpeg
bd27a9364ca274ca97f1df6d984e88a0700fb235
144,901,034,350,340,720,000,000,000,000,000,000,000
97
avcodec/mpeg4videodec: Remove use of FF_PROFILE_MPEG4_SIMPLE_STUDIO as indicator of studio profile The profile field is changed by code inside and outside the decoder, its not a reliable indicator of the internal codec state. Maintaining it consistency with studio_profile is messy. Its easier to just avoid it and use ...
**/ CImg<T>& vanvliet(const float sigma, const unsigned int order, const char axis='x', const bool boundary_conditions=true) { if (is_empty()) return *this; if (!cimg::type<T>::is_float()) return CImg<Tfloat>(*this,false).vanvliet(sigma,order,axis,boundary_conditions).m...
0
[ "CWE-119", "CWE-787" ]
CImg
ac8003393569aba51048c9d67e1491559877b1d1
154,936,081,594,516,630,000,000,000,000,000,000,000
51
.
spnego_gss_acquire_cred_from(OM_uint32 *minor_status, const gss_name_t desired_name, OM_uint32 time_req, const gss_OID_set desired_mechs, gss_cred_usage_t cred_usage, gss_const_key_value_set_t cred_store, gss_cred_id_t *output_cred_handle, gss_OID_set *actual_mech...
0
[ "CWE-415" ]
krb5
f18ddf5d82de0ab7591a36e465bc24225776940f
5,158,564,536,962,269,000,000,000,000,000,000,000
55
Fix double-free in SPNEGO [CVE-2014-4343] In commit cd7d6b08 ("Verify acceptor's mech in SPNEGO initiator") the pointer sc->internal_mech became an alias into sc->mech_set->elements, which should be considered constant for the duration of the SPNEGO context. So don't free it. CVE-2014-4343: In MIT krb5 releases 1.1...
switch (yych) { case 'a': goto yy31; default: goto yy30; }
1
[ "CWE-787" ]
re2c
039c18949190c5de5397eba504d2c75dad2ea9ca
287,934,531,948,278,400,000,000,000,000,000,000,000
4
Emit an error when repetition lower bound exceeds upper bound. Historically this was allowed and re2c swapped the bounds. However, it most likely indicates an error in user code and there is only a single occurrence in the tests (and the test in an artificial one), so although the change is backwards incompatible ther...
server_method* find_method(XMLRPC_SERVER server, const char* name) { server_method* sm; q_iter qi = Q_Iter_Head_F(&server->methodlist); while( qi ) { sm = Q_Iter_Get_F(qi); if(sm && !strcmp(sm->name, name)) { return sm; } qi = Q_Iter_Next_F(qi); } return NULL; }
0
[ "CWE-119" ]
php-src
88412772d295ebf7dd34409534507dc9bcac726e
124,986,142,308,255,730,000,000,000,000,000,000,000
14
Fix bug #68027 - fix date parsing in XMLRPC lib
void addReferenceKey(const LowerCaseString& key, uint64_t value) override { header_map_->addReferenceKey(key, value); header_map_->verifyByteSizeInternalForTest(); }
0
[]
envoy
2c60632d41555ec8b3d9ef5246242be637a2db0f
142,925,278,395,256,970,000,000,000,000,000,000,000
4
http: header map security fixes for duplicate headers (#197) Previously header matching did not match on all headers for non-inline headers. This patch changes the default behavior to always logically match on all headers. Multiple individual headers will be logically concatenated with ',' similar to what is done with...
dissect_dch_outer_loop_power_control(proto_tree *tree, packet_info *pinfo, tvbuff_t *tvb, int offset) { /* UL SIR target */ float target = (float)-8.2 + ((float)0.1 * (float)(int)(tvb_get_guint8(tvb, offset))); proto_tree_add_float(tree, hf_fp_ul_sir_target, tvb, offset, 1, target); offset++; col_a...
0
[ "CWE-20" ]
wireshark
7d7190695ce2ff269fdffb04e87139995cde21f4
132,971,427,679,910,210,000,000,000,000,000,000,000
11
UMTS_FP: fix handling reserved C/T value The spec puts the reserved value at 0xf but our internal table has 'unknown' at 0; since all the other values seem to be offset-by-one, just take the modulus 0xf to avoid running off the end of the table. Bug: 12191 Change-Id: I83c8fb66797bbdee52a2246fb1eea6e37cbc7eb0 Reviewed...
xfs_open_by_handle( struct file *parfilp, xfs_fsop_handlereq_t *hreq) { const struct cred *cred = current_cred(); int error; int fd; int permflag; struct file *filp; struct inode *inode; struct dentry *dentry; if (!capable(CAP_SYS_ADMIN)) return -XFS_ERROR(EPERM); dentry = xfs_handlereq_to_dent...
0
[ "CWE-200" ]
linux-2.6
af24ee9ea8d532e16883251a6684dfa1be8eec29
206,597,711,392,725,500,000,000,000,000,000,000,000
79
xfs: zero proper structure size for geometry calls Commit 493f3358cb289ccf716c5a14fa5bb52ab75943e5 added this call to xfs_fs_geometry() in order to avoid passing kernel stack data back to user space: + memset(geo, 0, sizeof(*geo)); Unfortunately, one of the callers of that function passes the address of a smal...
void ConnectionImpl::ServerStreamImpl::encode100ContinueHeaders(const ResponseHeaderMap& headers) { ASSERT(headers.Status()->value() == "100"); encodeHeaders(headers, false); }
0
[ "CWE-400" ]
envoy
0e49a495826ea9e29134c1bd54fdeb31a034f40c
51,772,746,425,194,650,000,000,000,000,000,000,000
4
http/2: add stats and stream flush timeout (#139) This commit adds a new stream flush timeout to guard against a remote server that does not open window once an entire stream has been buffered for flushing. Additional stats have also been added to better understand the codecs view of active streams as well as amount o...
static void flush_tmregs_to_thread(struct task_struct *tsk) { /* * If task is not current, it will have been flushed already to * it's thread_struct during __switch_to(). * * A reclaim flushes ALL the state or if not in TM save TM SPRs * in the appropriate thread structures from live. */ if (tsk != curre...
1
[ "CWE-119", "CWE-787" ]
linux
c1fa0768a8713b135848f78fd43ffc208d8ded70
4,655,601,595,610,019,000,000,000,000,000,000,000
20
powerpc/tm: Flush TM only if CPU has TM feature Commit cd63f3c ("powerpc/tm: Fix saving of TM SPRs in core dump") added code to access TM SPRs in flush_tmregs_to_thread(). However flush_tmregs_to_thread() does not check if TM feature is available on CPU before trying to access TM SPRs in order to copy live state to th...
void WebContents::RenderViewDeleted(content::RenderViewHost* render_view_host) { // This event is necessary for tracking any states with respect to // intermediate render view hosts aka speculative render view hosts. Currently // used by object-registry.js to ref count remote objects. Emit("render-view-deleted"...
0
[ "CWE-284", "CWE-693" ]
electron
18613925610ba319da7f497b6deed85ad712c59b
192,139,389,627,798,350,000,000,000,000,000,000,000
19
refactor: wire will-navigate up to a navigation throttle instead of OpenURL (#25108) * refactor: wire will-navigate up to a navigation throttle instead of OpenURL (#25065) * refactor: wire will-navigate up to a navigation throttle instead of OpenURL * spec: add test for x-site _top navigation * chore: old cod...
int cli_bytecode_context_setparam_int(struct cli_bc_ctx *ctx, unsigned i, uint64_t c) { if (i >= ctx->numParams) { cli_errmsg("bytecode: param index out of bounds: %u\n", i); return CL_EARG; } if (!type_isint(ctx->func->types[i])) { cli_errmsg("bytecode: parameter type mismatch\n"); return CL_EARG; ...
0
[ "CWE-189" ]
clamav-devel
3d664817f6ef833a17414a4ecea42004c35cc42f
186,637,851,922,640,100,000,000,000,000,000,000,000
26
fix recursion level crash (bb #3706). Thanks to Stephane Chazelas for the analysis.
void tls_global_cleanup(void) { ERR_remove_state(0); ENGINE_cleanup(); CONF_modules_unload(1); ERR_free_strings(); EVP_cleanup(); CRYPTO_cleanup_all_ex_data(); }
0
[ "CWE-295" ]
freeradius-server
874b39451702338389260edbfc52b381b20352ec
238,541,455,349,451,360,000,000,000,000,000,000,000
9
Set X509_V_FLAG_CRL_CHECK_ALL
scd_genkey_cb (void *opaque, const char *line) { struct scd_genkey_parm_s *parm = opaque; const char *keyword = line; int keywordlen; gpg_error_t rc = 0; for (keywordlen=0; *line && !spacep (line); line++, keywordlen++) ; while (spacep (line)) line++; if (keywordlen == 7 && !memcmp (keyword, "KE...
0
[ "CWE-20" ]
gnupg
2183683bd633818dd031b090b5530951de76f392
184,272,575,937,899,630,000,000,000,000,000,000,000
68
Use inline functions to convert buffer data to scalars. * common/host2net.h (buf16_to_ulong, buf16_to_uint): New. (buf16_to_ushort, buf16_to_u16): New. (buf32_to_size_t, buf32_to_ulong, buf32_to_uint, buf32_to_u32): New. -- Commit 91b826a38880fd8a989318585eb502582636ddd8 was not enough to avoid all sign extension on ...
static int ndpi_check_protocol_port_mismatch_exceptions(struct ndpi_detection_module_struct *ndpi_str, struct ndpi_flow_struct *flow, ndpi_default_ports_tree_node_t *expected_proto, ndpi_protocol *returned_proto) { /* For TLS (and other protocols) it is not simple to guess the exact protocol ...
0
[ "CWE-416", "CWE-787" ]
nDPI
6a9f5e4f7c3fd5ddab3e6727b071904d76773952
177,226,720,181,803,500,000,000,000,000,000,000,000
22
Fixed use after free caused by dangling pointer * This fix also improved RCE Injection detection Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
void HGraphBuilder::VisitSub(UnaryOperation* expr) { CHECK_ALIVE(VisitForValue(expr->expression())); HValue* value = Pop(); HValue* context = environment()->LookupContext(); HInstruction* instr = new(zone()) HMul(context, value, graph_->GetConstantMinus1()); TypeInfo info = oracle()->UnaryType(expr); ...
0
[]
node
fd80a31e0697d6317ce8c2d289575399f4e06d21
37,410,483,841,664,850,000,000,000,000,000,000,000
17
deps: backport 5f836c from v8 upstream Original commit message: Fix Hydrogen bounds check elimination When combining bounds checks, they must all be moved before the first load/store that they are guarding. BUG=chromium:344186 LOG=y R=svenpanne@chromium.org Review URL: https://coderevie...
long SSL_SESSION_set_timeout(SSL_SESSION* sess, long t) { if (!sess) return SSL_ERROR_NONE; sess->SetTimeOut(t); return SSL_SUCCESS; }
0
[ "CWE-254" ]
mysql-server
e7061f7e5a96c66cb2e0bf46bec7f6ff35801a69
86,210,408,560,147,560,000,000,000,000,000,000,000
8
Bug #22738607: YASSL FUNCTION X509_NAME_GET_INDEX_BY_NID IS NOT WORKING AS EXPECTED.
u32 rtl8xxxu_read_rfreg(struct rtl8xxxu_priv *priv, enum rtl8xxxu_rfpath path, u8 reg) { u32 hssia, val32, retval; hssia = rtl8xxxu_read32(priv, REG_FPGA0_XA_HSSI_PARM2); if (path != RF_A) val32 = rtl8xxxu_read32(priv, rtl8xxxu_rfregs[path].hssiparm2); else val32 = hssia; val32 &= ~FPGA0_HSSI_PARM2_ADDR_M...
0
[ "CWE-400", "CWE-401" ]
linux
a2cdd07488e666aa93a49a3fc9c9b1299e27ef3c
96,209,188,668,250,830,000,000,000,000,000,000,000
39
rtl8xxxu: prevent leaking urb In rtl8xxxu_submit_int_urb if usb_submit_urb fails the allocated urb should be released. Signed-off-by: Navid Emamdoost <navid.emamdoost@gmail.com> Reviewed-by: Chris Chiu <chiu@endlessm.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
generic_ret *init_2_svc(krb5_ui_4 *arg, struct svc_req *rqstp) { static generic_ret ret; gss_buffer_desc client_name = GSS_C_EMPTY_BUFFER; gss_buffer_desc service_name = GSS_C_EMPTY_BUFFER; kadm5_server_handle_t handle; OM_uint32 minor_stat; co...
0
[ "CWE-119", "CWE-772", "CWE-401" ]
krb5
83ed75feba32e46f736fcce0d96a0445f29b96c2
273,342,178,611,975,300,000,000,000,000,000,000,000
52
Fix leaks in kadmin server stubs [CVE-2015-8631] In each kadmind server stub, initialize the client_name and server_name variables, and release them in the cleanup handler. Many of the stubs will otherwise leak the client and server name if krb5_unparse_name() fails. Also make sure to free the prime_arg variables in...
static void x2(char* pattern, char* str, int from, int to) { xx(pattern, str, from, to, 0, 0); }
0
[ "CWE-125" ]
oniguruma
65a9b1aa03c9bc2dc01b074295b9603232cb3b78
116,490,441,661,238,820,000,000,000,000,000,000,000
4
onig-5.9.2
_lou_findOpcodeName(TranslationTableOpcode opcode) { static char scratchBuf[MAXSTRING]; /* Used by tools such as lou_debug */ if (opcode < 0 || opcode >= CTO_None) { sprintf(scratchBuf, "%d", opcode); return scratchBuf; } return opcodeNames[opcode]; }
0
[ "CWE-787" ]
liblouis
fb2bfce4ed49ac4656a8f7e5b5526e4838da1dde
74,668,732,222,713,840,000,000,000,000,000,000,000
9
Fix yet another buffer overflow in the braille table parser Reported by Henri Salo Fixes #592
dump_extra(Buffer *buf) { printf("W3m-current-url: %s\n", parsedURL2Str(&buf->currentURL)->ptr); if (buf->baseURL) printf("W3m-base-url: %s\n", parsedURL2Str(buf->baseURL)->ptr); #ifdef USE_M17N printf("W3m-document-charset: %s\n", wc_ces_to_charset(buf->document_charset)); #endif #ifdef USE_SSL if...
0
[ "CWE-59", "CWE-241" ]
w3m
18dcbadf2771cdb0c18509b14e4e73505b242753
89,046,975,461,181,020,000,000,000,000,000,000,000
27
Make temporary directory safely when ~/.w3m is unwritable
static void activate_packet_queue(struct iowait *wait, int reason) { struct hfi1_user_sdma_pkt_q *pq = container_of(wait, struct hfi1_user_sdma_pkt_q, busy); pq->busy.lock = NULL; xchg(&pq->state, SDMA_PKT_Q_ACTIVE); wake_up(&wait->wait_dma); };
0
[ "CWE-416" ]
linux
3d2a9d642512c21a12d19b9250e7a835dcb41a79
263,544,714,859,843,700,000,000,000,000,000,000,000
8
IB/hfi1: Ensure correct mm is used at all times Two earlier bug fixes have created a security problem in the hfi1 driver. One fix aimed to solve an issue where current->mm was not valid when closing the hfi1 cdev. It attempted to do this by saving a cached value of the current->mm pointer at file open time. This is a ...
inline any Holder::reduce(SemanticValues &sv, any &dt) const { if (outer_->action && !outer_->disable_action) { return outer_->action(sv, dt); } else if (sv.empty()) { return any(); } else { return std::move(sv.front()); } }
0
[ "CWE-125" ]
cpp-peglib
b3b29ce8f3acf3a32733d930105a17d7b0ba347e
151,178,461,509,712,130,000,000,000,000,000,000,000
9
Fix #122
diskfile_send(struct iperf_stream *sp) { int r; r = read(sp->diskfile_fd, sp->buffer, sp->test->settings->blksize); if (r == 0) sp->test->done = 1; else r = sp->snd2(sp); return r; }
0
[ "CWE-120", "CWE-119", "CWE-787" ]
iperf
91f2fa59e8ed80dfbf400add0164ee0e508e412a
178,362,159,566,961,900,000,000,000,000,000,000,000
11
Fix a buffer overflow / heap corruption issue that could occur if a malformed JSON string was passed on the control channel. This issue, present in the cJSON library, was already fixed upstream, so was addressed here in iperf3 by importing a newer version of cJSON (plus local ESnet modifications). Discovered and repo...
cmsBool Type_MPEcurve_Write(struct _cms_typehandler_struct* self, cmsIOHANDLER* io, void* Ptr, cmsUInt32Number nItems) { cmsUInt32Number BaseOffset; cmsStage* mpe = (cmsStage*) Ptr; _cmsStageToneCurvesData* Curves = (_cmsStageToneCurvesData*) mpe ->Data; BaseOffset = io ->Tell(io) - sizeof(_cmsTagBase...
0
[]
Little-CMS
41d222df1bc6188131a8f46c32eab0a4d4cdf1b6
297,098,888,556,114,580,000,000,000,000,000,000,000
20
Memory squeezing fix: lcms2 cmsPipeline construction When creating a new pipeline, lcms would often try to allocate a stage and pass it to cmsPipelineInsertStage without checking whether the allocation succeeded. cmsPipelineInsertStage would then assert (or crash) if it had not. The fix here is to change cmsPipelineI...
_equalDeclareCursorStmt(const DeclareCursorStmt *a, const DeclareCursorStmt *b) { COMPARE_STRING_FIELD(portalname); COMPARE_SCALAR_FIELD(options); COMPARE_NODE_FIELD(query); return true; }
0
[ "CWE-362" ]
postgres
5f173040e324f6c2eebb90d86cf1b0cdb5890f0a
36,751,313,086,805,844,000,000,000,000,000,000,000
8
Avoid repeated name lookups during table and index DDL. If the name lookups come to different conclusions due to concurrent activity, we might perform some parts of the DDL on a different table than other parts. At least in the case of CREATE INDEX, this can be used to cause the permissions checks to be performed aga...
compile_length_tree(Node* node, regex_t* reg) { int len, r; switch (NODE_TYPE(node)) { case NODE_LIST: len = 0; do { r = compile_length_tree(NODE_CAR(node), reg); if (r < 0) return r; len += r; } while (IS_NOT_NULL(node = NODE_CDR(node))); r = len; break; case NODE_ALT: ...
0
[ "CWE-476", "CWE-125" ]
oniguruma
c509265c5f6ae7264f7b8a8aae1cfa5fc59d108c
191,465,624,674,906,650,000,000,000,000,000,000,000
76
Fix CVE-2019-13225: problem in converting if-then-else pattern to bytecode.
static int ep_alloc(struct eventpoll **pep) { int error; struct user_struct *user; struct eventpoll *ep; user = get_current_user(); error = -ENOMEM; ep = kzalloc(sizeof(*ep), GFP_KERNEL); if (unlikely(!ep)) goto free_uid; spin_lock_init(&ep->lock); mutex_init(&ep->mtx); init_waitqueue_head(&ep->wq); init...
0
[]
linux-2.6
28d82dc1c4edbc352129f97f4ca22624d1fe61de
92,068,073,311,513,730,000,000,000,000,000,000,000
29
epoll: limit paths The current epoll code can be tickled to run basically indefinitely in both loop detection path check (on ep_insert()), and in the wakeup paths. The programs that tickle this behavior set up deeply linked networks of epoll file descriptors that cause the epoll algorithms to traverse them indefinitel...
int am_check_permissions(request_rec *r, am_cache_entry_t *session) { am_dir_cfg_rec *dir_cfg; int i, j; int skip_or = 0; const apr_array_header_t *backrefs = NULL; dir_cfg = am_get_dir_cfg(r); /* Iterate over all cond-directives */ for (i = 0; i < dir_cfg->cond->nelts; i++) { cons...
0
[ "CWE-601" ]
mod_auth_mellon
9d28908e28ef70a12196c215503fb0075e1fd7f3
330,867,696,928,814,600,000,000,000,000,000,000,000
139
Add MellonRedirectDomains option. Limit the domains that we will redirect to after login / logout to a set of trusted domains. By default we only allow redirects to the current domain. This change breaks backwards compatibility with any site that relies on redirects to separate domains. Fixes #35
MD5auth_setkey( keyid_t keyno, int keytype, const u_char *key, size_t len ) { symkey * sk; symkey ** bucket; u_char * secret; size_t secretsize; DEBUG_ENSURE(keytype <= USHRT_MAX); DEBUG_ENSURE(len < 4 * 1024); /* * See if we already have the key. If so just stick in the * new value. */ bucket = ...
1
[ "CWE-287" ]
ntp
71a962710bfe066f76da9679cf4cfdeffe34e95e
10,464,955,911,733,527,000,000,000,000,000,000,000
70
[Sec 2936] Skeleton Key: Any trusted key system can serve time. HStenn.
_PUBLIC_ char **file_lines_load(const char *fname, int *numlines, size_t maxsize, TALLOC_CTX *mem_ctx) { char *p; size_t size; p = file_load(fname, &size, maxsize, mem_ctx); if (!p) return NULL; return file_lines_parse(p, size, numlines, mem_ctx); }
0
[]
samba
63d98ed90466295d0e946f79868d3d7aad6e7589
159,620,664,567,566,840,000,000,000,000,000,000,000
10
CVE-2013-4476: lib-util: split out file_save_mode() from file_save() file_save_mode() writes files with specified mode. Bug: https://bugzilla.samba.org/show_bug.cgi?id=10234 Signed-off-by: Björn Baumbach <bb@sernet.de> Reviewed-by: Stefan Metzmacher <metze@samba.org>
static struct fpm_child_s *fpm_child_find(pid_t pid) /* {{{ */ { struct fpm_worker_pool_s *wp; struct fpm_child_s *child = 0; for (wp = fpm_worker_all_pools; wp; wp = wp->next) { for (child = wp->children; child; child = child->next) { if (child->pid == pid) { break; } } if (child) break; } if ...
0
[ "CWE-787" ]
php-src
fadb1f8c1d08ae62b4f0a16917040fde57a3b93b
179,861,126,742,674,060,000,000,000,000,000,000,000
22
Fix bug #81026 (PHP-FPM oob R/W in root process leading to priv escalation) The main change is to store scoreboard procs directly to the variable sized array rather than indirectly through the pointer. Signed-off-by: Stanislav Malyshev <stas@php.net>
*/ static inline struct dst_entry *skb_dst(const struct sk_buff *skb) { /* If refdst was not refcounted, check we still are in a * rcu_read_lock section */ WARN_ON((skb->_skb_refdst & SKB_DST_NOREF) && !rcu_read_lock_held() && !rcu_read_lock_bh_held()); return (struct dst_entry *)(skb->_skb_refdst & SKB_DS...
0
[ "CWE-20" ]
linux
2b16f048729bf35e6c28a40cbfad07239f9dcd90
318,614,830,506,868,140,000,000,000,000,000,000,000
10
net: create skb_gso_validate_mac_len() If you take a GSO skb, and split it into packets, will the MAC length (L2 + L3 + L4 headers + payload) of those packets be small enough to fit within a given length? Move skb_gso_mac_seglen() to skbuff.h with other related functions like skb_gso_network_seglen() so we can use it...
WandExport void DrawPathMoveToRelative(DrawingWand *wand,const double x, const double y) { assert(wand != (DrawingWand *) NULL); assert(wand->signature == MagickWandSignature); if (wand->debug != MagickFalse) (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); DrawPathMoveTo(wand,RelativeP...
0
[ "CWE-476" ]
ImageMagick
6ad5fc3c9b652eec27fc0b1a0817159f8547d5d9
154,565,377,062,115,140,000,000,000,000,000,000,000
9
https://github.com/ImageMagick/ImageMagick/issues/716
static void ehci_advance_state(EHCIState *ehci, int async) { EHCIQueue *q = NULL; int itd_count = 0; int again; do { switch(ehci_get_state(ehci, async)) { case EST_WAITLISTHEAD: again = ehci_state_waitlisthead(ehci, async); break; case EST_FETCHENTRY: ...
0
[]
qemu
791f97758e223de3290592d169f8e6339c281714
22,249,067,499,378,948,000,000,000,000,000,000,000
91
usb: ehci: fix memory leak in ehci_init_transfer In ehci_init_transfer function, if the 'cpage' is bigger than 4, it doesn't free the 'p->sgl' once allocated previously thus leading a memory leak issue. This patch avoid this. Signed-off-by: Li Qiang <liqiang6-s@360.cn> Message-id: 5821c0f4.091c6b0a.e0c92.e811@mx.goog...
void OpenConnectionTask::askForAuth() { if (model->m_hasImapPassword) { Q_ASSERT(loginCmd.isEmpty()); loginCmd = parser->login(model->m_imapUser, model->m_imapPassword); model->accessParser(parser).capabilitiesFresh = false; } else { EMIT_LATER_NOARG(model, authRequested); } ...
0
[ "CWE-200" ]
trojita
25fffa3e25cbad85bbca804193ad336b090a9ce1
331,697,529,422,419,080,000,000,000,000,000,000,000
10
IMAP: refuse to work when STARTTLS is required but server sends PREAUTH Oops, we cannot send STARTTLS when the connection is already authenticated. This is serious enough to warrant an error; an attacker might be going after a plaintext of a message we're going to APPEND, etc. Thanks to Arnt Gulbrandsen on the imap-p...
curbuf_locked(void) { if (curbuf_lock > 0) { emsg(_(e_not_allowed_to_edit_another_buffer_now)); return TRUE; } return allbuf_locked(); }
0
[ "CWE-122", "CWE-787" ]
vim
85b6747abc15a7a81086db31289cf1b8b17e6cb1
215,279,484,827,571,100,000,000,000,000,000,000,000
9
patch 8.2.4214: illegal memory access with large 'tabstop' in Ex mode Problem: Illegal memory access with large 'tabstop' in Ex mode. Solution: Allocate enough memory.
count_intro_point_circuits(const rend_service_t *service) { unsigned int num_ipos = 0; SMARTLIST_FOREACH_BEGIN(circuit_get_global_list(), circuit_t *, circ) { if (!circ->marked_for_close && circ->state == CIRCUIT_STATE_OPEN && (circ->purpose == CIRCUIT_PURPOSE_S_ESTABLISH_INTRO || circ-...
0
[ "CWE-532" ]
tor
09ea89764a4d3a907808ed7d4fe42abfe64bd486
165,199,822,721,771,980,000,000,000,000,000,000,000
18
Fix log-uninitialized-stack bug in rend_service_intro_established. Fixes bug 23490; bugfix on 0.2.7.2-alpha. TROVE-2017-008 CVE-2017-0380
static int lua_ap_add_input_filter(lua_State *L) { request_rec *r; const char *filterName; ap_filter_rec_t *filter; luaL_checktype(L, 1, LUA_TUSERDATA); luaL_checktype(L, 2, LUA_TSTRING); r = ap_lua_check_request_rec(L, 1); filterName = lua_tostring(L, 2); filter = ap_get_input_f...
0
[ "CWE-20" ]
httpd
78eb3b9235515652ed141353d98c239237030410
276,349,935,857,032,900,000,000,000,000,000,000,000
18
*) SECURITY: CVE-2015-0228 (cve.mitre.org) mod_lua: A maliciously crafted websockets PING after a script calls r:wsupgrade() can cause a child process crash. [Edward Lu <Chaosed0 gmail.com>] Discovered by Guido Vranken <guidovranken gmail.com> Submitted by: Edward Lu Committed by: covener git-svn-id...
zfs_acl_alloc(int vers) { zfs_acl_t *aclp; aclp = kmem_zalloc(sizeof (zfs_acl_t), KM_SLEEP); list_create(&aclp->z_acl, sizeof (zfs_acl_node_t), offsetof(zfs_acl_node_t, z_next)); aclp->z_version = vers; if (vers == ZFS_ACL_VERSION_FUID) aclp->z_ops = &zfs_acl_fuid_ops; else aclp->z_ops = &zfs_acl_v0_ops...
0
[ "CWE-200", "CWE-732" ]
zfs
716b53d0a14c72bda16c0872565dd1909757e73f
1,272,488,154,446,177,700,000,000,000,000,000,000
14
FreeBSD: Fix UNIX permissions checking Reviewed-by: Ryan Moeller <ryan@iXsystems.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Matt Macy <mmacy@FreeBSD.org> Closes #10727
inet_sockaddrip4(struct sockaddr_storage *addr) { if (addr->ss_family != AF_INET) return 0xffffffff; return ((struct sockaddr_in *) addr)->sin_addr.s_addr; }
0
[ "CWE-59", "CWE-61" ]
keepalived
04f2d32871bb3b11d7dc024039952f2fe2750306
334,662,089,391,092,840,000,000,000,000,000,000,000
7
When opening files for write, ensure they aren't symbolic links Issue #1048 identified that if, for example, a non privileged user created a symbolic link from /etc/keepalvied.data to /etc/passwd, writing to /etc/keepalived.data (which could be invoked via DBus) would cause /etc/passwd to be overwritten. This commit ...
static int kdb_setenv(const char *var, const char *val) { int i; char *ep; size_t varlen, vallen; varlen = strlen(var); vallen = strlen(val); ep = kdballocenv(varlen + vallen + 2); if (ep == (char *)0) return KDB_ENVBUFFULL; sprintf(ep, "%s=%s", var, val); for (i = 0; i < __nenv; i++) { if (__env[i] ...
0
[ "CWE-787" ]
linux
eadb2f47a3ced5c64b23b90fd2a3463f63726066
204,422,169,420,980,250,000,000,000,000,000,000,000
36
lockdown: also lock down previous kgdb use KGDB and KDB allow read and write access to kernel memory, and thus should be restricted during lockdown. An attacker with access to a serial port (for example, via a hypervisor console, which some cloud vendors provide over the network) could trigger the debugger so it is i...
static void append_http_status_line(smart_str *buffer, int protocol_version, int response_code, int persistent) /* {{{ */ { if (!response_code) { response_code = 200; } smart_str_appendl_ex(buffer, "HTTP", 4, persistent); smart_str_appendc_ex(buffer, '/', persistent); smart_str_append_generic_ex(buffer, protocol...
0
[]
php-src
2438490addfbfba51e12246a74588b2382caa08a
254,614,663,738,886,140,000,000,000,000,000,000,000
16
slim post data
int samdb_rodc(struct ldb_context *sam_ctx, bool *am_rodc) { const struct GUID *objectGUID; int ret; bool *cached; /* see if we have a cached copy */ cached = (bool *)ldb_get_opaque(sam_ctx, "cache.am_rodc"); if (cached) { *am_rodc = *cached; return LDB_SUCCESS; } objectGUID = samdb_ntds_objectGUID(sam_ct...
0
[ "CWE-200" ]
samba
0a3aa5f908e351201dc9c4d4807b09ed9eedff77
54,841,645,105,315,800,000,000,000,000,000,000,000
37
CVE-2022-32746 ldb: Make use of functions for appending to an ldb_message This aims to minimise usage of the error-prone pattern of searching for a just-added message element in order to make modifications to it (and potentially finding the wrong element). BUG: https://bugzilla.samba.org/show_bug.cgi?id=15009 Signed...
void WAVEFile::initIMACompressionParams() { Track *track = getTrack(); track->f.framesPerPacket = 505; track->f.bytesPerPacket = 256 * track->f.channelCount; AUpvlist pv = AUpvnew(1); AUpvsetparam(pv, 0, _AF_IMA_ADPCM_TYPE); AUpvsetvaltype(pv, 0, AU_PVTYPE_LONG); long l = _AF_IMA_ADPCM_TYPE_WAVE; AUpvsetval(p...
0
[ "CWE-119", "CWE-284" ]
audiofile
a2e9eab8ea87c4ffc494d839ebb4ea145eb9f2e6
283,864,356,670,994,500,000,000,000,000,000,000,000
15
Actually fail when error occurs in parseFormat When there's an unsupported number of bits per sample or an invalid number of samples per block, don't only print an error message using the error handler, but actually stop parsing the file. This fixes #35 (also reported at https://bugzilla.opensuse.org/show_bug.cgi?id=...
gx_default_get_page_device(gx_device * dev) { return NULL; }
0
[]
ghostpdl
c9b362ba908ca4b1d7c72663a33229588012d7d9
332,971,765,087,745,230,000,000,000,000,000,000,000
4
Bug 699670: disallow copying of the epo device The erasepage optimisation (epo) subclass device shouldn't be allowed to be copied because the subclass private data, child and parent pointers end up being shared between the original device and the copy. Add an epo_finish_copydevice which NULLs the three offending poin...
PJ_DEF(void) pj_dns_packet_dup(pj_pool_t *pool, const pj_dns_parsed_packet*p, unsigned options, pj_dns_parsed_packet **p_dst) { pj_dns_parsed_packet *dst; unsigned nametable_count = 0; #if PJ_DNS_MAX_NAMES_IN_NAMETABLE pj_str_t nametable[PJ_DNS_MAX_NAMES_IN_NAMETABLE]; #else ...
0
[ "CWE-120", "CWE-787" ]
pjproject
9fae8f43accef8ea65d4a8ae9cdf297c46cfe29a
102,135,378,667,875,510,000,000,000,000,000,000,000
78
Merge pull request from GHSA-p6g5-v97c-w5q4 * Prevent heap buffer overflow when parsing DNS packets * Make sure packet parsing doesn't advance beyond max/end * Update checks * Remove check Co-authored-by: sauwming <ming@teluu.com>
ConnStateData::startPeekAndSplice() { // This is the Step2 of the SSL bumping assert(sslServerBump); Http::StreamPointer context = pipeline.front(); ClientHttpRequest *http = context ? context->http : nullptr; if (sslServerBump->step == Ssl::bumpStep1) { sslServerBump->step = Ssl::bumpStep2...
0
[ "CWE-444" ]
squid
fd68382860633aca92065e6c343cfd1b12b126e7
152,181,413,886,926,230,000,000,000,000,000,000,000
58
Improve Transfer-Encoding handling (#702) Reject messages containing Transfer-Encoding header with coding other than chunked or identity. Squid does not support other codings. For simplicity and security sake, also reject messages where Transfer-Encoding contains unnecessary complex values that are technically equiva...
void ha_partition::start_bulk_insert(ha_rows rows) { DBUG_ENTER("ha_partition::start_bulk_insert"); m_bulk_inserted_rows= 0; bitmap_clear_all(&m_bulk_insert_started); /* use the last bit for marking if bulk_insert_started was called */ bitmap_set_bit(&m_bulk_insert_started, m_tot_parts); DBUG_VOID_RETURN; ...
0
[]
mysql-server
be901b60ae59c93848c829d1b0b2cb523ab8692e
324,372,056,971,762,760,000,000,000,000,000,000,000
10
Bug#26390632: CREATE TABLE CAN CAUSE MYSQL TO EXIT. Analysis ======== CREATE TABLE of InnoDB table with a partition name which exceeds the path limit can cause the server to exit. During the preparation of the partition name, there was no check to identify whether the complete path name for partition exceeds the max ...
bool Downstream::expect_response_body() const { return !resp_.headers_only && http2::expect_response_body(req_.method, resp_.http_status); }
0
[]
nghttp2
319d5ab1c6d916b6b8a0d85b2ae3f01b3ad04f2c
156,659,352,124,313,950,000,000,000,000,000,000,000
4
nghttpx: Fix request stall Fix request stall if backend connection is reused and buffer is full.
void CoreNetwork::putCmd(const QString &cmd, const QList<QByteArray> &params, const QByteArray &prefix) { QByteArray msg; if (!prefix.isEmpty()) msg += ":" + prefix + " "; msg += cmd.toUpper().toLatin1(); for (int i = 0; i < params.size(); i++) { msg += " "; if (i == params.si...
1
[ "CWE-399" ]
quassel
b5e38970ffd55e2dd9f706ce75af9a8d7730b1b8
200,927,860,701,875,100,000,000,000,000,000,000,000
19
Improve the message-splitting algorithm for PRIVMSG and CTCP This introduces a new message splitting algorithm based on QTextBoundaryFinder. It works by first starting with the entire message to be sent, encoding it, and checking to see if it is over the maximum message length. If it is, it uses QTBF to find the wor...
void redisLog(int level, const char *fmt, ...) { const int syslogLevelMap[] = { LOG_DEBUG, LOG_INFO, LOG_NOTICE, LOG_WARNING }; const char *c = ".-*#"; time_t now = time(NULL); va_list ap; FILE *fp; char buf[64]; char msg[REDIS_MAX_LOGMSG_LEN]; if (level < server.verbosity) return; ...
0
[ "CWE-20" ]
redis
697af434fbeb2e3ba2ba9687cd283ed1a2734fa5
62,259,941,128,948,800,000,000,000,000,000,000,000
26
initial changes needed to turn the current VM code into a cache system. Tons of work to do still.
epsclosure (position_set *s, struct dfa const *d) { size_t i, j; char *visited; /* array of booleans, enough to use char, not int */ position p, old; CALLOC(visited, d->tindex); for (i = 0; i < s->nelem; ++i) if (d->tokens[s->elems[i].index] >= NOTCHAR && d->tokens[s->elems[i].index] != BACKREF ...
0
[ "CWE-189" ]
grep
cbbc1a45b9f843c811905c97c90a5d31f8e6c189
202,061,539,192,521,830,000,000,000,000,000,000,000
60
grep: fix some core dumps with long lines etc. These problems mostly occur because the code attempts to stuff sizes into int or into unsigned int; this doesn't work on most 64-bit hosts and the errors can lead to core dumps. * NEWS: Document this. * src/dfa.c (token): Typedef to ptrdiff_t, since the enum's range could...
setup_without_group(THD *thd, Ref_ptr_array ref_pointer_array, TABLE_LIST *tables, List<TABLE_LIST> &leaves, List<Item> &fields, List<Item> &all_fields, COND **conds, ...
0
[]
server
ff77a09bda884fe6bf3917eb29b9d3a2f53f919b
205,515,624,531,330,000,000,000,000,000,000,000,000
54
MDEV-22464 Server crash on UPDATE with nested subquery Uninitialized ref_pointer_array[] because setup_fields() got empty fields list. mysql_multi_update() for some reason does that by substituting the fields list with empty total_list for the mysql_select() call (looks like wrong merge since total_list is not used a...
void CLua::add_shutdown_listener(lua_shutdown_listener *listener) { if (find(shutdown_listeners.begin(), shutdown_listeners.end(), listener) == shutdown_listeners.end()) { shutdown_listeners.push_back(listener); } }
0
[ "CWE-434" ]
crawl
fc522ff6eb1bbb85e3de60c60a45762571e48c28
261,973,382,360,551,280,000,000,000,000,000,000,000
8
Disable lua load(), loadstring() bytcode loading
ldns_str2rdf_aaaa(ldns_rdf **rd, const char *str) { uint8_t address[LDNS_IP6ADDRLEN + 1]; if (inet_pton(AF_INET6, (char*)str, address) != 1) { return LDNS_STATUS_INVALID_IP6; } else { *rd = ldns_rdf_new_frm_data( LDNS_RDF_TYPE_AAAA, sizeof(address) - 1, &address); } return *rd?LDNS_STATUS_OK:LDNS_STATUS_ME...
0
[]
ldns
3bdeed02505c9bbacb3b64a97ddcb1de967153b7
278,136,281,005,830,530,000,000,000,000,000,000,000
12
bugfix #1257: Free after reallocing to 0 size Thanks Stephan Zeisberg
ftrace_match_addr(struct ftrace_hash *hash, unsigned long ip, int remove) { struct ftrace_func_entry *entry; if (!ftrace_location(ip)) return -EINVAL; if (remove) { entry = ftrace_lookup_ip(hash, ip); if (!entry) return -ENOENT; free_hash_entry(hash, entry); return 0; } return add_hash_entry(hash, ...
0
[ "CWE-703" ]
linux
6a76f8c0ab19f215af2a3442870eeb5f0e81998d
185,457,855,885,331,330,000,000,000,000,000,000,000
17
tracing: Fix possible NULL pointer dereferences Currently set_ftrace_pid and set_graph_function files use seq_lseek for their fops. However seq_open() is called only for FMODE_READ in the fops->open() so that if an user tries to seek one of those file when she open it for writing, it sees NULL seq_file and then panic...
find_matching_ref (GHashTable *refs, const char *name, const char *opt_branch, const char *opt_default_branch, const char *opt_arch, FlatpakKinds kinds, GError **error) { const char **arches = fl...
0
[ "CWE-74" ]
flatpak
fb473cad801c6b61706353256cab32330557374a
320,218,261,118,120,270,000,000,000,000,000,000,000
66
dir: Pass environment via bwrap --setenv when running apply_extra This means we can systematically pass the environment variables through bwrap(1), even if it is setuid and thus is filtering out security-sensitive environment variables. bwrap ends up being run with an empty environment instead. As with the previous c...
dispose_variable (var) SHELL_VAR *var; { if (var == 0) return; if (nofree_p (var) == 0) dispose_variable_value (var); FREE_EXPORTSTR (var); free (var->name); if (exported_p (var)) array_needs_making = 1; free (var); }
0
[]
bash
863d31ae775d56b785dc5b0105b6d251515d81d5
288,506,275,574,126,100,000,000,000,000,000,000,000
18
commit bash-20120224 snapshot
_rsvg_handle_allow_load (RsvgHandle *handle, const char *uri, GError **error) { RsvgLoadPolicy policy = handle->priv->load_policy; if (policy == RSVG_LOAD_POLICY_ALL_PERMISSIVE) return TRUE; return TRUE; }
1
[ "CWE-20" ]
librsvg
f01aded72c38f0e18bc7ff67dee800e380251c8e
320,828,316,554,927,500,000,000,000,000,000,000,000
11
io: Implement strict load policy Allow any file to load from data:, and any resource to load from other resources. Only allow file: to load other file: URIs from below the path of the base file. Any other loads are denied. Bug #691708.
get_tree(const oid * objid, size_t objidlen, struct tree *subtree) { struct tree *return_tree = NULL; for (; subtree; subtree = subtree->next_peer) { if (*objid == subtree->subid) goto found; } return NULL; found: while (subtree->next_peer && subtree->next_peer->subid == ...
0
[ "CWE-59", "CWE-61" ]
net-snmp
4fd9a450444a434a993bc72f7c3486ccce41f602
3,882,405,497,119,388,000,000,000,000,000,000,000
22
CHANGES: snmpd: Stop reading and writing the mib_indexes/* files Caching directory contents is something the operating system should do and is not something Net-SNMP should do. Instead of storing a copy of the directory contents in ${tmp_dir}/mib_indexes/${n}, always scan a MIB directory.
static struct mnt_namespace *alloc_mnt_ns(struct user_namespace *user_ns) { struct mnt_namespace *new_ns; struct ucounts *ucounts; int ret; ucounts = inc_mnt_namespaces(user_ns); if (!ucounts) return ERR_PTR(-ENOSPC); new_ns = kmalloc(sizeof(struct mnt_namespace), GFP_KERNEL); if (!new_ns) { dec_mnt_namesp...
0
[ "CWE-400", "CWE-703" ]
linux
d29216842a85c7970c536108e093963f02714498
142,270,505,506,784,850,000,000,000,000,000,000,000
34
mnt: Add a per mount namespace limit on the number of mounts CAI Qian <caiqian@redhat.com> pointed out that the semantics of shared subtrees make it possible to create an exponentially increasing number of mounts in a mount namespace. mkdir /tmp/1 /tmp/2 mount --make-rshared / for i in $(seq 1 20) ; do mo...
static int ipc_has_perm(struct kern_ipc_perm *ipc_perms, u32 perms) { struct ipc_security_struct *isec; struct common_audit_data ad; u32 sid = current_sid(); isec = ipc_perms->security; COMMON_AUDIT_DATA_INIT(&ad, IPC); ad.u.ipc_id = ipc_perms->key; return avc_has_perm(sid, isec->sid, isec->sclass, perms, ...
0
[]
linux-2.6
ee18d64c1f632043a02e6f5ba5e045bb26a5465f
67,692,332,314,381,070,000,000,000,000,000,000,000
14
KEYS: Add a keyctl to install a process's session keyring on its parent [try #6] Add a keyctl to install a process's session keyring onto its parent. This replaces the parent's session keyring. Because the COW credential code does not permit one process to change another process's credentials directly, the change is...
TEST_F(HttpConnectionManagerImplTest, RejectWebSocketOnNonWebSocketRoute) { setup(false, ""); NiceMock<MockResponseEncoder> encoder; EXPECT_CALL(*codec_, dispatch(_)).WillOnce(Invoke([&](Buffer::Instance& data) -> Http::Status { RequestDecoder* decoder = &conn_manager_->newStream(encoder); RequestHeaderMa...
0
[ "CWE-400" ]
envoy
0e49a495826ea9e29134c1bd54fdeb31a034f40c
65,373,108,567,588,860,000,000,000,000,000,000,000
30
http/2: add stats and stream flush timeout (#139) This commit adds a new stream flush timeout to guard against a remote server that does not open window once an entire stream has been buffered for flushing. Additional stats have also been added to better understand the codecs view of active streams as well as amount o...
static int snd_rawmidi_ioctl_status32(struct snd_rawmidi_file *rfile, struct snd_rawmidi_status32 __user *argp) { int err = 0; struct snd_rawmidi_status32 __user *status = argp; struct snd_rawmidi_status32 status32; struct snd_rawmidi_status64 status64; if (copy_from_user(&status32, argp, sizeof(s...
0
[ "CWE-416" ]
linux
c1f6e3c818dd734c30f6a7eeebf232ba2cf3181d
340,208,238,022,417,630,000,000,000,000,000,000,000
42
ALSA: rawmidi: Fix racy buffer resize under concurrent accesses The rawmidi core allows user to resize the runtime buffer via ioctl, and this may lead to UAF when performed during concurrent reads or writes: the read/write functions unlock the runtime lock temporarily during copying form/to user-space, and that's the ...
static bool checkreturn decode_callback_field(pb_istream_t *stream, pb_wire_type_t wire_type, pb_field_iterator_t *iter) { pb_callback_t *pCallback = (pb_callback_t*)iter->pData; #ifdef PB_OLD_CALLBACK_STYLE void *arg = pCallback->arg; #else void **arg = &(pCallback->arg); #endif if (pCallback...
0
[ "CWE-125" ]
nanopb
7b396821ddd06df8e39143f16e1dc0a4645b89a3
165,928,421,394,578,290,000,000,000,000,000,000,000
46
Fix invalid free() after failed realloc() (GHSA-gcx3-7m76-287p)
void moveFrom(UnicodeString &dest, UnicodeString &src) { dest = std::move(src); }
0
[ "CWE-190", "CWE-787" ]
icu
b7d08bc04a4296982fcef8b6b8a354a9e4e7afca
143,236,381,344,283,000,000,000,000,000,000,000,000
3
ICU-20958 Prevent SEGV_MAPERR in append See #971
parse_udev_flag(struct evdev_device *device, struct udev_device *udev_device, const char *property) { const char *val; bool b; val = udev_device_get_property_value(udev_device, property); if (!val) return false; if (!parse_boolean_property(val, &b)) { evdev_log_error(device, "property %s has invalid ...
0
[ "CWE-134" ]
libinput
a423d7d3269dc32a87384f79e29bb5ac021c83d1
22,578,375,411,797,397,000,000,000,000,000,000,000
21
evdev: strip the device name of format directives This fixes a format string vulnerabilty. evdev_log_message() composes a format string consisting of a fixed prefix (including the rendered device name) and the passed-in format buffer. This format string is then passed with the arguments to the actual log handler, whi...
static int io_uring_flush(struct file *file, void *data) { struct io_ring_ctx *ctx = file->private_data; io_uring_cancel_files(ctx, data); return 0; }
0
[]
linux
ff002b30181d30cdfbca316dadd099c3ca0d739c
268,618,663,461,043,000,000,000,000,000,000,000,000
7
io_uring: grab ->fs as part of async preparation This passes it in to io-wq, so it assumes the right fs_struct when executing async work that may need to do lookups. Cc: stable@vger.kernel.org # 5.3+ Signed-off-by: Jens Axboe <axboe@kernel.dk>
alloc_clear(size_t size) { void *p; p = lalloc(size, TRUE); if (p != NULL) (void)vim_memset(p, 0, size); return p; }
0
[ "CWE-416" ]
vim
9f1a39a5d1cd7989ada2d1cb32f97d84360e050f
283,481,030,957,904,730,000,000,000,000,000,000,000
9
patch 8.2.4040: keeping track of allocated lines is too complicated Problem: Keeping track of allocated lines in user functions is too complicated. Solution: Instead of freeing individual lines keep them all until the end.
intrusive_ptr<Expression> ExpressionFilter::parse(ExpressionContext* const expCtx, BSONElement expr, const VariablesParseState& vpsIn) { verify(expr.fieldNameStringData() == "$filter"); uassert(28646, "$filter o...
0
[]
mongo
1772b9a0393b55e6a280a35e8f0a1f75c014f301
47,302,761,922,568,185,000,000,000,000,000,000,000
45
SERVER-49404 Enforce additional checks in $arrayToObject
prepareDecodeNodeIdJson(UA_NodeId *dst, CtxJson *ctx, ParseCtx *parseCtx, u8 *fieldCount, DecodeEntry *entries) { /* possible keys: Id, IdType*/ /* Id must always be present */ entries[*fieldCount].fieldName = UA_JSONKEY_ID; entries[*fieldCount].found = false; entries[*field...
0
[ "CWE-703", "CWE-787" ]
open62541
c800e2987b10bb3af6ef644b515b5d6392f8861d
139,398,295,594,412,560,000,000,000,000,000,000,000
62
fix(json): Check max recursion depth in more places