project
string
commit_id
string
target
int64
func
string
cwe
string
big_vul_idx
string
idx
int64
hash
string
size
float64
message
string
dataset
string
contiki-ng
a4597001d50a04f4b9c78f323ba731e2f979802c
1
ns_input(void) { uint8_t flags = 0; LOG_INFO("Received NS from "); LOG_INFO_6ADDR(&UIP_IP_BUF->srcipaddr); LOG_INFO_(" to "); LOG_INFO_6ADDR(&UIP_IP_BUF->destipaddr); LOG_INFO_(" with target address "); LOG_INFO_6ADDR((uip_ipaddr_t *) (&UIP_ND6_NS_BUF->tgtipaddr)); LOG_INFO_("\n"); UIP_STAT(++uip_sta...
null
null
195,674
84843070962167005407140386244838304136
183
Check whether there is enough space for ND6 option headers when processing incoming packets.
other
libde265
697aa4f7c774abd6374596e6707a6f4f54265355
1
void generate_inter_prediction_samples(base_context* ctx, const slice_segment_header* shdr, de265_image* img, int xC,int yC, int xB,int yB, ...
null
null
195,682
274813485195215554464834940462882687019
383
fix MC with HDR chroma, but SDR luma (#301)
other
mruby
a4d97934d51cb88954cc49161dc1d151f64afb6b
1
mrb_vm_exec(mrb_state *mrb, const struct RProc *proc, const mrb_code *pc) { /* mrb_assert(MRB_PROC_CFUNC_P(proc)) */ const mrb_irep *irep = proc->body.irep; const mrb_pool_value *pool = irep->pool; const mrb_sym *syms = irep->syms; mrb_code insn; int ai = mrb_gc_arena_save(mrb); struct mrb_jmpbuf *prev_jm...
null
null
195,691
147780436991899729545603935182301496324
1,844
vm.c: check if target_class is NULL (when prepended).
other
FreeRTOS-Kernel
47338393f1f79558f6144213409f09f81d7c4837
1
QueueHandle_t xQueueGenericCreate( const UBaseType_t uxQueueLength, const UBaseType_t uxItemSize, const uint8_t ucQueueType ) { Queue_t * pxNewQueue; size_t xQueueSizeInBytes; uint8_t * pucQueueStorage; ...
null
null
195,692
274786410457574681394426849117761189698
55
add assert for addition overflow on queue creation (#225)
other
glibc
23e0e8f5f1fb5ed150253d986ecccdc90c2dcd5e
1
__getcwd_generic (char *buf, size_t size) { /* Lengths of big file name components and entire file names, and a deep level of file name nesting. These numbers are not upper bounds; they are merely large values suitable for initial allocations, designed to be large enough for most real-world uses....
null
null
195,716
204737856749159993041789176797064964819
333
getcwd: Set errno to ERANGE for size == 1 (CVE-2021-3999) No valid path returned by getcwd would fit into 1 byte, so reject the size early and return NULL with errno set to ERANGE. This change is prompted by CVE-2021-3999, which describes a single byte buffer underflow and overflow when all of the following condition...
other
mvfst
a67083ff4b8dcbb7ee2839da6338032030d712b0
1
void updateHandshakeState(QuicServerConnectionState& conn) { // Zero RTT read cipher is available after chlo is processed with the // condition that early data attempt is accepted. auto handshakeLayer = conn.serverHandshakeLayer; auto zeroRttReadCipher = handshakeLayer->getZeroRttReadCipher(); auto zeroRttHea...
null
null
195,720
181509801354210897629105034468408496700
80
Close connection if we derive an extra 1-rtt write cipher Summary: Fixes CVE-2021-24029 Reviewed By: mjoras, lnicco Differential Revision: D26613890 fbshipit-source-id: 19bb2be2c731808144e1a074ece313fba11f1945
other
libjpeg
4746b577931e926a49e50de9720a4946de3069a7
1
bool SampleInterleavedLSScan::ParseMCU(void) { #if ACCUSOFT_CODE int lines = m_ulRemaining[0]; // total number of MCU lines processed. UBYTE preshift = m_ucLowBit + FractionalColorBitsOf(); struct Line *line[4]; UBYTE cx; // // If a DNL marker is present, the number of remaining lines is...
null
null
195,740
337627729530744243995392841896493457223
170
Fixed handling of empty JPEG-LS scans.
other
libjpeg
4746b577931e926a49e50de9720a4946de3069a7
1
bool SingleComponentLSScan::ParseMCU(void) { #if ACCUSOFT_CODE int lines = m_ulRemaining[0]; // total number of MCU lines processed. UBYTE preshift = m_ucLowBit + FractionalColorBitsOf(); struct Line *line = CurrentLine(0); // // If a DNL marker is present, the number of remaining l...
null
null
195,741
246493896187105005444818505983819497172
150
Fixed handling of empty JPEG-LS scans.
other
gpac
37592ad86c6ca934d34740012213e467acc4a3b0
1
static GF_Err gf_isom_parse_movie_boxes_internal(GF_ISOFile *mov, u32 *boxType, u64 *bytesMissing, Bool progressive_mode) { GF_Box *a; u64 totSize, mdat_end=0; GF_Err e = GF_OK; #ifndef GPAC_DISABLE_ISOM_FRAGMENTS if (mov->single_moof_mode && mov->single_moof_state == 2) { return e; } /*restart from where we ...
null
null
195,742
320809447116813169681723225620850413792
498
fixed #2163
other
tensorflow
02cc160e29d20631de3859c6653184e3f876b9d7
1
void MakeDataset(OpKernelContext* ctx, DatasetBase** output) override { // Create a new SparseTensorSliceDatasetOp::Dataset, insert it in // the step container, and return it as the output. const Tensor* indices; OP_REQUIRES_OK(ctx, ctx->input("indices", &indices)); const Tensor* values; OP_RE...
null
null
195,752
171363723210961322415209119251133937799
47
Prevent nullptr deref in SparseTensorSliceDataset The arguments must determine a valid sparse tensor. This means that when indices are empty then the values must be empty too (and the reverse). Also added test, by modifying existing test with empty sparse tensor to now run with an invalid sparse tensor input. PiperO...
other
tensorflow
8a84f7a2b5a2b27ecf88d25bad9ac777cd2f7992
1
void Compute(OpKernelContext* context) override { // Only create one, if one does not exist already. Report status for all // other exceptions. If one already exists, it unrefs the new one. // An epsilon value of zero could cause performance issues and is therefore, // disallowed. const Tensor* ep...
null
null
195,768
89054104973263516632079780397171243314
23
Ensure num_streams >= 0 in tf.raw_ops.BoostedTreesCreateQuantileStreamResource PiperOrigin-RevId: 387452765 Change-Id: I9990c760e177fabca6a3b9b4612ceeaeeba51495
other
curl
3a09fbb7f264c67c438d01a30669ce325aa508e2
1
CURLcode Curl_build_unencoding_stack(struct Curl_easy *data, const char *enclist, int maybechunked) { struct SingleRequest *k = &data->req; do { const char *name; size_t namelen; /* Parse a single encoding name. */ while(ISSPACE(*enclist) || *enclist == ',') ...
null
null
195,774
249376959292636853981047045335373252879
48
content_encoding: return error on too many compression steps The max allowed steps is arbitrarily set to 5. Bug: https://curl.se/docs/CVE-2022-32206.html CVE-2022-32206 Reported-by: Harry Sintonen Closes #9049
other
deark
62acb7753b0e3c0d3ab3c15057b0a65222313334
1
void fmtutil_macbitmap_read_pixmap_only_fields(deark *c, dbuf *f, struct fmtutil_macbitmap_info *bi, i64 pos) { i64 pixmap_version; i64 pack_size; i64 plane_bytes; i64 n; de_dbg(c, "additional PixMap header fields, at %d", (int)pos); de_dbg_indent(c, 1); pixmap_version = dbuf_getu16be(f, pos+0); de_dbg(c, "p...
null
null
195,800
91134474765832554215432155878217095059
47
pict,macrsrc: Fixed a bug that could cause division by 0 Found by F. Çelik.
other
php-src
0c8a2a2cd1056b7dc403eacb5d2c0eec6ce47c6f
1
*/ static void php_wddx_pop_element(void *user_data, const XML_Char *name) { st_entry *ent1, *ent2; wddx_stack *stack = (wddx_stack *)user_data; HashTable *target_hash; zend_class_entry *pce; zval obj; /* OBJECTS_FIXME */ if (stack->top == 0) { return; } if (!strcmp((char *)name, EL_STRING) ||...
null
null
195,801
281179289723329197214540489283702639538
125
Fix for bug #72790 and bug #72799 (cherry picked from commit a14fdb9746262549bbbb96abb87338bacd147e1b) Conflicts: ext/wddx/wddx.c
other
mongo
6518b22420c5bbd92c42caf907671c3a2b140bb6
1
DocumentSource::GetNextResult DocumentSourceUnionWith::doGetNext() { if (!_pipeline) { // We must have already been disposed, so we're finished. return GetNextResult::makeEOF(); } if (_executionState == ExecutionProgress::kIteratingSource) { auto nextInput = pSource->getNext(); ...
null
null
195,804
77189124809087292115725641020447994671
60
SERVER-58203 factor out logging statements into helper functions
other
binutils-gdb
e3e5ae049371a27fd1737aba946fe26d06e029b5
1
display_debug_names (struct dwarf_section *section, void *file) { unsigned char *hdrptr = section->start; dwarf_vma unit_length; unsigned char *unit_start; const unsigned char *const section_end = section->start + section->size; unsigned char *unit_end; introduce (section, false); load_debug_section_wit...
null
null
195,824
45344829135475210734172934971132402350
372
Replace a run-time assertion failure with a warning message when parsing corrupt DWARF data. PR 29289 * dwarf.c (display_debug_names): Replace assert with a warning message.
other
linux
e4571b8c5e9ffa1e85c0c671995bd4dcc5c75091
1
int btrfs_rm_device(struct btrfs_fs_info *fs_info, const char *device_path, u64 devid) { struct btrfs_device *device; struct btrfs_fs_devices *cur_devices; struct btrfs_fs_devices *fs_devices = fs_info->fs_devices; u64 num_devices; int ret = 0; mutex_lock(&uuid_mutex); num_devices = btrfs_num_devices(fs_...
null
null
195,908
319350513243799661932841427777686896592
148
btrfs: fix NULL pointer dereference when deleting device by invalid id [BUG] It's easy to trigger NULL pointer dereference, just by removing a non-existing device id: # mkfs.btrfs -f -m single -d single /dev/test/scratch1 \ /dev/test/scratch2 # mount /dev/test/scratch1 /mnt/btrfs # btrfs device remove 3 /...
other
ImageMagick
d072ed6aff835c174e856ce3a428163c0da9e8f4
1
static Image *ReadOneMNGImage(MngInfo* mng_info, const ImageInfo *image_info, ExceptionInfo *exception) { char page_geometry[MagickPathExtent]; Image *image; MagickBooleanType logging; volatile int first_mng_object, object_id, term_chunk_found, skip_to_iend; volatile ssize...
null
null
195,909
3754765081343933811961558712152130638
2,411
Skip MNG CLIP chunk with out-of-range object IDs
other
samba
a60863458dc6b60a09aa8d31fada6c36f5043c76
1
struct torture_suite *torture_raw_write(TALLOC_CTX *mem_ctx) { struct torture_suite *suite = torture_suite_create(mem_ctx, "write"); torture_suite_add_1smb_test(suite, "write", test_write); torture_suite_add_1smb_test(suite, "write unlock", test_writeunlock); torture_suite_add_1smb_test(suite, "write close", test_...
null
null
195,927
221440379242522067882758642217412717539
11
CVE-2022-32742: s4: torture: Add raw.write.bad-write test. Reproduces the test code in: BUG: https://bugzilla.samba.org/show_bug.cgi?id=15085 Add knownfail. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: David Disseldorp <ddiss@samba.org>
other
pjproject
9fae8f43accef8ea65d4a8ae9cdf297c46cfe29a
1
static pj_status_t parse_query(pj_dns_parsed_query *q, pj_pool_t *pool, const pj_uint8_t *pkt, const pj_uint8_t *start, const pj_uint8_t *max, int *parsed_len) { const pj_uint8_t *p = start; int name_len, name_part_len; pj_status_t status; /* Get the length of the name */ status...
null
null
195,954
126258121414833088809132976389975059096
38
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>
other
tensorflow
30721cf564cb029d34535446d6a5a6357bebc8e7
1
void Compute(OpKernelContext* ctx) override { const Tensor* hypothesis_indices; const Tensor* hypothesis_values; const Tensor* hypothesis_shape; const Tensor* truth_indices; const Tensor* truth_values; const Tensor* truth_shape; OP_REQUIRES_OK(ctx, ctx->input("hypothesis_indices", &hypothe...
null
null
195,965
21516249110451770540540545715504410219
163
Fix tf.raw_ops.EditDistance vulnerability with negative indices. Check that indices are non-negative. Fix several identical code sites. Clean up grammar in error message. PiperOrigin-RevId: 445442017
other
gpac
3dbe11b37d65c8472faf0654410068e5500b3adb
1
GF_Err diST_box_read(GF_Box *s, GF_BitStream *bs) { u32 i; char str[1024]; GF_DIMSScriptTypesBox *p = (GF_DIMSScriptTypesBox *)s; i=0; str[0]=0; while (1) { str[i] = gf_bs_read_u8(bs); if (!str[i]) break; i++; } ISOM_DECREASE_SIZE(p, i); p->content_script_types = gf_strdup(str); return GF_OK; }
null
null
195,984
106220362428987220004954577919715973308
18
fixed #2175
other
tensorflow
b619c6f865715ca3b15ef1842b5b95edbaa710ad
1
void TensorSliceReader::LoadShard(int shard) const { CHECK_LT(shard, sss_.size()); if (sss_[shard] || !status_.ok()) { return; // Already loaded, or invalid. } string value; SavedTensorSlices sts; const string fname = fnames_[shard]; VLOG(1) << "Reading meta data from file " << fname << "..."; Tabl...
null
null
196,231
144504249104074457348474186663869882665
39
Use BuildTensorShapeBase when parsing unverified TensorShapes during checkpoint loading. This avoids crashing when the TensorShape has negative dimensions. PiperOrigin-RevId: 392769882 Change-Id: Id1f7ae7fcf8142193556af47abfda81b13d3cce4
other
rtl_433
37455483889bd1c641bdaafc493d1cc236b74904
1
static int acurite_00275rm_decode(r_device *decoder, bitbuffer_t *bitbuffer) { int result = 0; bitbuffer_invert(bitbuffer); // This sensor repeats a signal three times. Combine as fallback. uint8_t *b_rows[3] = {0}; int n_rows = 0; for (int row = 0; row < bitbuffer->num_rows; ++row) { ...
null
null
196,273
201249563317541586609386246410405181739
81
Fix overflow in Acurite-00275rm (closes #2012)
other
lsquic
a74702c630e108125e71898398737baec8f02238
1
lsquic_qeh_settings (struct qpack_enc_hdl *qeh, unsigned max_table_size, unsigned dyn_table_size, unsigned max_risked_streams, int server) { enum lsqpack_enc_opts enc_opts; assert(qeh->qeh_flags & QEH_INITIALIZED); if (qeh->qeh_flags & QEH_HAVE_SETTINGS) { LSQ_WARN("settings alrea...
null
null
196,276
288925027585735265622903529553530375426
33
Release 3.1.0
other
barebox
0a9f9a7410681e55362f8311537ebc7be9ad0fbe
1
int digest_generic_verify(struct digest *d, const unsigned char *md) { int ret; int len = digest_length(d); unsigned char *tmp; tmp = xmalloc(len); ret = digest_final(d, tmp); if (ret) goto end; ret = memcmp(md, tmp, len); ret = ret ? -EINVAL : 0; end: free(tmp); return ret; }
null
null
196,316
78392329714916786850884103185275418998
18
crypto: digest: use crypto_memneq() When verifying a digest it is important not to leak timing information through memcmp(). Use crypto_memneq() instead. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
other
njs
39e8fa1b7db1680654527f8fa0e9ee93b334ecba
1
njs_function_prototype_apply(njs_vm_t *vm, njs_value_t *args, njs_uint_t nargs, njs_index_t unused) { int64_t i, length; njs_int_t ret; njs_frame_t *frame; njs_value_t *this, *arr_like; njs_array_t *arr; njs_function_t *func; if (!njs_is_function(njs_argument(...
null
null
196,320
139959814390637136613861597730885170482
75
Fixed Function.prototype.apply() with slow arrays. Previously, the function had two issues: * array->start was referenced without checking for fast array flag * the created arguments list was not sanity-checked for its length, which can be very large. The fix is to remove micro-optimization for arrays and ...
other
linux
64620e0a1e712a778095bd35cbb277dc2259281f
1
static int check_func_arg(struct bpf_verifier_env *env, u32 arg, struct bpf_call_arg_meta *meta, const struct bpf_func_proto *fn) { u32 regno = BPF_REG_1 + arg; struct bpf_reg_state *regs = cur_regs(env), *reg = &regs[regno]; enum bpf_arg_type arg_type = fn->arg_type[arg]; enum bpf_reg_type type = reg->ty...
null
null
196,322
43280363038976164306013313965209411511
273
bpf: Fix out of bounds access for ringbuf helpers Both bpf_ringbuf_submit() and bpf_ringbuf_discard() have ARG_PTR_TO_ALLOC_MEM in their bpf_func_proto definition as their first argument. They both expect the result from a prior bpf_ringbuf_reserve() call which has a return type of RET_PTR_TO_ALLOC_MEM_OR_NULL. Meani...
other
vim
409510c588b1eec1ae33511ae97a21eb8e110895
1
find_pattern_in_path( char_u *ptr, // pointer to search pattern int dir UNUSED, // direction of expansion int len, // length of search pattern int whole, // match whole words only int skip_comments, // don't match inside comments int type, // Type of search; are we looking for a type? ...
null
null
196,328
38231164732816384836004234817431625979
684
patch 8.2.5050: using freed memory when searching for pattern in path Problem: Using freed memory when searching for pattern in path. Solution: Make a copy of the line.
other
vim
44db8213d38c39877d2148eff6a72f4beccfb94e
1
yank_copy_line(struct block_def *bd, long y_idx, int exclude_trailing_space) { char_u *pnew; if (exclude_trailing_space) bd->endspaces = 0; if ((pnew = alloc(bd->startspaces + bd->endspaces + bd->textlen + 1)) == NULL) return FAIL; y_current->y_array[y_idx] = pnew; vim_memset(pnew, ...
null
null
196,578
246228854524410019724598079825181397279
29
patch 8.2.4219: reading before the start of the line Problem: Reading before the start of the line. Solution: Check boundary before trying to read the character.
other
tensorflow
4aacb30888638da75023e6601149415b39763d76
1
void DoCompute(OpKernelContext* c) { core::RefCountPtr<Var> v; OP_REQUIRES_OK(c, LookupResource(c, HandleFromInput(c, 0), &v)); Tensor* params = v->tensor(); const Tensor& indices = c->input(1); const Tensor& updates = c->input(2); // Check that rank(updates.shape) = rank(indices.shape + para...
null
null
196,587
163644490547300222226168716636939380480
69
Disallow division by zero FPE in `tf.raw_ops.ResourceScatterDiv` Had to update a test that was broken. PiperOrigin-RevId: 388516976 Change-Id: Ic358e6bf0559e011539974d453fc7aa18b427e9c
other
ffjpeg
caade60a69633d74100bd3c2528bddee0b6a1291
1
int main(int argc, char *argv[]) { void *jfif = NULL; BMP bmp = {0}; if (argc < 3) { printf( "jfif test program\n" "usage: ffjpeg -d filename decode jpg file to decode.bmp\n" " ffjpeg -e filename encode bmp file to encode.jpg\n" ); ...
null
null
196,609
327590585403055995575159456174046768253
30
exit program when bmp file is oversize
other
booth
35bf0b7b048d715f671eb68974fb6b4af6528c67
1
static int setup_config(int type) { int rv; rv = read_config(cl.configfile, type); if (rv < 0) goto out; if (is_auth_req()) { rv = read_authkey(); if (rv < 0) goto out; #if HAVE_LIBGCRYPT if (!gcry_check_version(NULL)) { log_error("gcry_check_version"); rv = -ENOENT; goto out; } gcry_contr...
null
null
196,611
55095981735811690584245498640396195697
50
Revert "Refactor: main: substitute is_auth_req macro" This reverts commit da79b8ba28ad4837a0fee13e5f8fb6f89fe0e24c. authfile != authkey Signed-off-by: Jan Friesse <jfriesse@redhat.com>
other
tensorflow
20cb18724b0bf6c09071a3f53434c4eec53cc147
1
void Compute(OpKernelContext* context) override { const Tensor& input = context->input(0); const TensorShape& input_shape = input.shape(); const int32_t input_dims = input_shape.dims(); const Tensor& segment_id = context->input(1); const TensorShape& segment_id_shape = segment_id.shape(); con...
null
null
196,620
110207759568301742016620853453621387570
68
Allow 0 for number of segments in `unsorted_segment_join_op.cc` Related to the fix for #55305 PiperOrigin-RevId: 443157549
other
mruby
b1d0296a937fe278239bdfac840a3fd0e93b3ee9
1
mrb_remove_method(mrb_state *mrb, struct RClass *c, mrb_sym mid) { mt_tbl *h; MRB_CLASS_ORIGIN(c); h = c->mt; if (h && mt_del(mrb, h, mid)) return; mrb_name_error(mrb, mid, "method '%n' not defined in %C", mid, c); }
null
null
196,621
331456770623121739023197011651271269672
10
class.c: clear method cache after `remove_method`.
other
seatd
7cffe0797fdb17a9c08922339465b1b187394335
1
int main(int argc, char *argv[]) { (void)argc; const char *usage = "Usage: seatd-launch [options] [--] command\n" "\n" " -h Show this help message\n" " -s <path> Where to create the seatd socket\n" " -v Show the version number\n" "\n"; int c; char *sockpath = NULL; while (...
null
null
196,623
269031710364232709260337589812485265866
181
seatd-launch: Remove socket path command line arg This should not need to be configured, so remove the argument. If downstream prefers a different folder, the location can be made compile-time configurable like for seatd itself.
other
tensorflow
579261dcd446385831fe4f7457d802a59685121d
1
void ComputeAsync(OpKernelContext* context, DoneCallback done) final { const Tensor& input = context->input(0); const Tensor& rhs = context->input(1); const int ndims = input.dims(); const int64 n = input.dim_size(ndims - 1); const int64 nrhs = rhs.dim_size(ndims - 1); // Validate inputs. ...
null
null
196,629
2151236193610516009407418019752947503
227
Fix crash in MatrixSolve when inputs have different batch dimensions. Before, the process would crash or certain elements would be silently ignored. Now an InvalidArgument is raised. PiperOrigin-RevId: 384844020 Change-Id: Iba44417e383bdd0e1abc4012bfca83b2377dd335
other
minetest
da71e86633d0b27cd02d7aac9fdac625d141ca13
1
static inline int checkSettingSecurity(lua_State* L, const std::string &name) { if (ScriptApiSecurity::isSecure(L) && name.compare(0, 7, "secure.") == 0) throw LuaError("Attempt to set secure setting."); bool is_mainmenu = false; #ifndef SERVER is_mainmenu = ModApiBase::getGuiEngine(L) != nullptr; #endif if (!is...
null
null
196,670
14542184638408056621499358845757545617
18
Protect a few more settings from being set from mods Of those settings main_menu_script has concrete security impact, the rest are added out of abundance of caution.
other
bareos
abe462037388635193f3b5b71575f32596c3b69d
1
static int DoPamAuth(struct pam_handle* pamh, const char* username, std::string& authenticated_username) { int err = pam_set_item(pamh, PAM_RUSER, username); if (err != PAM_SUCCESS) { Dmsg1(debuglevel, "PAM set_item failed: %s\n", pam_strerror(pamh, err)); return er...
null
null
196,682
303404528456224642824010820660072442794
31
dir: check account authorization during PAM login Fixes CVE-2022-24755 Previously, when a user logged in via PAM, Bareos did only check for authentication (i.e. the "auth" section in PAM). No authorization checks were made (the "account" section in PAM). This patch now adds the proper check. This will break existing ...
other
shim
159151b6649008793d6204a34d7b9c41221fb4b0
1
EFI_STATUS verify_image(void *data, unsigned int datasize, EFI_LOADED_IMAGE *li, PE_COFF_LOADER_IMAGE_CONTEXT *context) { EFI_STATUS efi_status; UINT8 sha1hash[SHA1_DIGEST_SIZE]; UINT8 sha256hash[SHA256_DIGEST_SIZE]; /* * The binary header contains relevant context and section pointers */ efi_status = r...
null
null
196,687
213147111462734701312298267958315465833
53
Also avoid CVE-2022-28737 in verify_image() PR 446 ("Add verify_image") duplicates some of the code affected by Chris Coulson's defense in depth patch against CVE-2022-28737 ("pe: Perform image verification earlier when loading grub"). This patch makes the same change to the new function. Signed-off-by: Peter Jones ...
other
tensorflow
cebe3c45d76357d201c65bdbbf0dbe6e8a63bbdb
1
void Compute(OpKernelContext* ctx) override { Buffer* buf = nullptr; OP_REQUIRES_OK(ctx, GetBuffer(ctx, def(), &buf)); core::ScopedUnref scope(buf); Buffer::Tuple tuple; std::size_t index = ctx->input(0).scalar<int>()(); OP_REQUIRES_OK(ctx, buf->Peek(index, &tuple)); OP_REQUIRES( ...
null
null
196,689
139304201094829090604286879553789504495
19
Fix tf.raw_ops.StagePeek vulnerability with invalid `index`. Check that input is actually a scalar before treating it as such. PiperOrigin-RevId: 445524908
other
gpac
71460d72ec07df766dab0a4d52687529f3efcf0a
1
static GF_Err isoffin_process(GF_Filter *filter) { ISOMReader *read = gf_filter_get_udta(filter); u32 i, count = gf_list_count(read->channels); Bool is_active = GF_FALSE; Bool in_is_eos = GF_FALSE; Bool check_forced_end = GF_FALSE; Bool has_new_data = GF_FALSE; u64 min_offset_plus_one = 0; u32 nb_forced_end=0; ...
null
null
196,691
15984395158403865840168206053223917598
358
fixed #1876
other
wireshark
41bfc9112480c3d83331ed93470c7f675a9d5b1a
1
proto_register_sysdig_event(void) { /* XXX Match up with Sysdig's names. */ static hf_register_info hf[] = { { &hf_se_cpu_id, { "CPU ID", "sysdig.cpu_id", FT_UINT16, BASE_DEC, NULL, 0, NULL, HFILL } }, { &hf_se_thread_id, { "Thread ID", "sysdig.thread_id",...
null
null
196,693
177882138436273397991326132064548612432
225
dissectors: re-generated sysdig events using provided tool. Signed-off-by: Federico Di Pierro <nierro92@gmail.com>
other
tensorflow
67bfd9feeecfb3c61d80f0e46d89c170fbee682b
1
void SparseFillEmptyRowsOpImpl(OpKernelContext* context, AsyncOpKernel::DoneCallback done = nullptr) { // Note that setting this empty lambda as the default parameter value directly // can cause strange compiler/linker errors, so we do it like this instead. if (!done) { done = [...
null
null
196,698
110814885553575581074060288061926287313
48
Make SparseFillEmptyRows validate that the length of `values` must be equal to the number of index tuples. PiperOrigin-RevId: 399969549 Change-Id: I3c2f2ca1c1d2cc88bb5951c6958b38c16e9436c8
other
tensorflow
11ced8467eccad9c7cb94867708be8fa5c66c730
1
Status ValidateInputs(const Tensor *a_indices, const Tensor *a_values, const Tensor *a_shape, const Tensor *b) { if (!TensorShapeUtils::IsMatrix(a_indices->shape())) { return errors::InvalidArgument( "Input a_indices should be a matrix but received shape: ", a_indices->shape(...
null
null
196,705
313787551478648270695677588993470558322
31
Fix UB in SparseTensorDenseAdd Added more input validation to avoid nullptr dereferencing and array index out of bounds issues. PiperOrigin-RevId: 446192704
other
mbedtls
e5af9fabf7d68e3807b6ea78792794b8352dbba2
1
static int ssl_check_dtls_clihlo_cookie( mbedtls_ssl_context *ssl, const unsigned char *cli_id, size_t cli_id_len, const unsigned char *in, size_t in_len, unsigned char *obuf, size_t buf_len, size_t *olen ) { ...
null
null
196,706
96472964360820481519603345267108102743
135
Add missing sid_len in calculations of cookie sizes This could lead to a potential buffer overread with small MBEDTLS_SSL_IN_CONTENT_LEN. Change the bound calculations so that it is apparent what lengths and sizes are used. Signed-off-by: Andrzej Kurek <andrzej.kurek@arm.com>
other
njs
8b39afdad9a0761e0a5d4af1a762bd9a6daef572
1
njs_array_prototype_sort(njs_vm_t *vm, njs_value_t *args, njs_uint_t nargs, njs_index_t unused) { int64_t i, und, len, nlen, length; njs_int_t ret, fast_path; njs_array_t *array; njs_value_t *this, *comparefn, *start, *strings; njs_array_sort_ctx...
null
null
196,726
13165140673111245230691626642940550743
204
Fixed Array.prototype.sort() when arr size is changed in a comparator. This fixed #468 issue on Github.
other
gpac
77510778516803b7f7402d7423c6d6bef50254c3
1
GF_Err xtra_box_read(GF_Box *s, GF_BitStream *bs) { GF_XtraBox *ptr = (GF_XtraBox *)s; while (ptr->size) { GF_XtraTag *tag; u32 prop_type = 0; char *data=NULL, *data2=NULL; ISOM_DECREASE_SIZE_NO_ERR(ptr, 8) s32 tag_size = gf_bs_read_u32(bs); u32 name_size = gf_bs_read_u32(bs); if (tag_size < 8) return ...
null
null
196,764
58735372241291791237218686629226360010
57
fixed #2255
other
tensorflow
a4e138660270e7599793fa438cd7b2fc2ce215a6
1
Status Examples::Initialize(OpKernelContext* const context, const ModelWeights& weights, const int num_sparse_features, const int num_sparse_features_with_values, const int num_dense_features) { num_feature...
null
null
196,790
310715085860763790063727145741184772931
80
Add remaining validation to `sdca_internal.cc` PiperOrigin-RevId: 387738010 Change-Id: I28eedcfd87a53aaf34deb075acea1f8c95470808
other
percona-xtrabackup
7742f875bb289a874246fb4653b7cd9f14b588fe
1
char *make_argv(char *buf, size_t len, int argc, char **argv) { size_t left= len; const char *arg; buf[0]= 0; ++argv; --argc; while (argc > 0 && left > 0) { arg = *argv; if (strncmp(*argv, "--password", strlen("--password")) == 0) { arg = "--password=..."; } if (strncmp(*argv, "--encrypt-key", str...
null
null
196,792
132710794129423427640045943674520634467
36
PXB-2722 password is written into xtrabackup_info https://jira.percona.com/browse/PXB-2722 Analysis: password passed with -p option is written into backup tool_command in xtrabackup_info Fix: mask password before writting into xtrabackup_info
other
gpac
f5a038e6893019ee471b6a57490cf7a495673816
1
GF_Err gf_hinter_finalize(GF_ISOFile *file, GF_SDP_IODProfile IOD_Profile, u32 bandwidth) { u32 i, sceneT, odT, descIndex, size, size64; GF_InitialObjectDescriptor *iod; GF_SLConfig slc; GF_ISOSample *samp; Bool remove_ocr; u8 *buffer; char buf64[5000], sdpLine[5100]; gf_isom_sdp_clean(file); if (bandwidth)...
null
null
196,801
87434855642795708862552350553523342121
179
fixed #1885
other
mruby
aaa28a508903041dd7399d4159a8ace9766b022f
1
mrb_vm_exec(mrb_state *mrb, const struct RProc *proc, const mrb_code *pc) { /* mrb_assert(MRB_PROC_CFUNC_P(proc)) */ const mrb_irep *irep = proc->body.irep; const mrb_pool_value *pool = irep->pool; const mrb_sym *syms = irep->syms; mrb_code insn; int ai = mrb_gc_arena_save(mrb); struct mrb_jmpbuf *prev_jm...
null
null
196,805
44647007425815231324711190586303250954
1,821
vm.c: stack may be reallocated in functions calls. Probably due to recursive VM calls via `mrb_funcall()`.
other
njs
81af26364c21c196dd21fb5e14c7fa9ce7debd17
1
njs_array_convert_to_slow_array(njs_vm_t *vm, njs_array_t *array) { uint32_t i, length; njs_value_t index, value; njs_object_prop_t *prop; njs_set_array(&value, array); array->object.fast_array = 0; length = array->length; for (i = 0; i < length; i++) { if (njs_i...
null
null
196,817
15778839275107817850632511934182345441
30
Fixed Object.defineProperty() when a recursive descriptor is provided. This closes #481 issue on Github.
other
tinyproxy
3764b8551463b900b5b4e3ec0cd9bb9182191cb7
1
static struct request_s *process_request (struct conn_s *connptr, orderedmap hashofheaders) { char *url; struct request_s *request; int ret, skip_trans; size_t request_len; skip_trans = 0; /* NULL out all the fields so frees don...
null
null
196,819
125292646856234711705287388719971040122
193
prevent junk from showing up in error page in invalid requests fixes #457
other
tensorflow
9a133d73ae4b4664d22bd1aa6d654fec13c52ee1
1
void Compute(OpKernelContext* ctx) override { const Tensor& val = ctx->input(0); int64 id = ctx->session_state()->GetNewId(); TensorStore::TensorAndKey tk{val, id, requested_device()}; OP_REQUIRES_OK(ctx, ctx->tensor_store()->AddTensor(name(), tk)); Tensor* handle = nullptr; OP_REQUIRES_OK(ct...
null
null
196,829
253301187505940915484989198031334916980
20
Prevent segfault in `GetSessionHandle{,V2}`. In eager mode, session state is null. PiperOrigin-RevId: 332548597 Change-Id: If094812c2e094044220b9ba28f7d7601be042f38
other
tensorflow
701cfaca222a82afbeeb17496bd718baa65a67d2
1
Status SparseCountSparseOutputShapeFn(InferenceContext *c) { auto rank = c->Dim(c->input(0), 1); auto nvals = c->UnknownDim(); c->set_output(0, c->Matrix(nvals, rank)); // out.indices c->set_output(1, c->Vector(nvals)); // out.values c->set_output(2, c->Vector(rank)); // out.dense_shape retu...
null
null
196,834
157165965848088310301354415155097213287
8
Fix heap out of bounds error in tf.raw_ops.SparseCountSparseOutput shape inference when it is called with invalid inputs, and add a test for it. PiperOrigin-RevId: 405766415 Change-Id: I77d244ef35f351ef7b6f821efd959cac2c66db24
other
furnace
0eb02422d5161767e9983bdaa5c429762d3477ce
1
inline void FurnaceGUI::patternRow(int i, bool isPlaying, float lineHeight, int chans, int ord, const DivPattern** patCache) { static char id[32]; bool selectedRow=(i>=sel1.y && i<=sel2.y); ImGui::TableNextRow(0,lineHeight); ImGui::TableNextColumn(); float cursorPosY=ImGui::GetCursorPos().y-ImGui::GetScrollY(...
null
null
196,841
136686899264564982027774933242322169613
275
fix possible pattern crash issue #325
other
radare2
b4ca66f5d4363d68a6379e5706353b3bde5104a4
1
static bool consume_encoded_name_new(RBuffer *b, ut64 bound, ut32 *len_out, char **str_out) { ut32 len; char *orig = NULL; if (!consume_str_new (b, bound, &len, &orig)) { return false; } // room for even every character getting encoded size_t maxsize = (len * 4) + 2; char *sout = malloc (maxsize); if (!sout)...
null
null
196,844
294432143564110724105418779321318827106
38
Fix #20336 - wasm bin parser ##crash
other
tensorflow
1e206baedf8bef0334cca3eb92bab134ef525a28
1
TfLiteStatus Eval(TfLiteContext* context, TfLiteNode* node) { auto* params = reinterpret_cast<TfLiteDivParams*>(node->builtin_data); OpData* data = reinterpret_cast<OpData*>(node->user_data); const TfLiteTensor* input1; TF_LITE_ENSURE_OK(context, GetInputSafe(context, node, kInputTensor1, &...
null
null
196,846
29201391895766660247072243701398557871
30
Prevent a division by 0 in division ops. PiperOrigin-RevId: 385223169 Change-Id: Ia4228960b5d2aa44480385f74bdd70d21a3613c3
other
gpac
b43f9d1a4b4e33d08edaef6d313e6ce4bdf554d3
1
static void naludmx_set_dolby_vision(GF_NALUDmxCtx *ctx) { u8 dv_cfg[24]; switch (ctx->dv_mode) { case DVMODE_NONE: case DVMODE_CLEAN: return; //auto mode, wait until we have RPU or EL to signal profile case DVMODE_AUTO: if (!ctx->nb_dv_rpu && !ctx->nb_dv_el) return; break; } u32 dv_level = gf_dolby_vis...
null
null
196,859
254137378903265944648888015086766583040
42
fixed #2223
other
gpac
a51f951b878c2b73c1d8e2f1518c7cdc5fb82c3f
1
GF_Err afra_box_read(GF_Box *s, GF_BitStream *bs) { unsigned int i; GF_AdobeFragRandomAccessBox *ptr = (GF_AdobeFragRandomAccessBox *)s; ISOM_DECREASE_SIZE(ptr, 9) ptr->long_ids = gf_bs_read_int(bs, 1); ptr->long_offsets = gf_bs_read_int(bs, 1); ptr->global_entries = gf_bs_read_int(bs, 1); ptr->reserved = gf_bs...
null
null
196,860
316197592189545869425403322683843314472
66
fixed #1782 (fuzz)
other
gpac
44fdc3d972c31c56efe73e1a3b63438d46087652
1
GF_Filter *gf_fs_load_filter(GF_FilterSession *fsess, const char *name, GF_Err *err_code) { const char *args=NULL; const char *sep, *file_ext; u32 i, len, count = gf_list_count(fsess->registry); Bool quiet = (err_code && (*err_code == GF_EOS)) ? GF_TRUE : GF_FALSE; assert(fsess); assert(name); if (err_code) *er...
null
null
196,882
220232041198906961636892375047340335646
97
fixed #1906
other
tensorflow
9e62869465573cb2d9b5053f1fa02a81fce21d69
1
void Compute(OpKernelContext* ctx) override { const Tensor& input = ctx->input(kInputTensorIndex); const Tensor& input_min = ctx->input(kInputMinIndex); const Tensor& input_max = ctx->input(kInputMaxIndex); const size_t depth = input_max.NumElements(); OP_REQUIRES( ctx, input_min.dim_size...
null
null
196,885
178185501940213289525267608244583233975
74
Add more validation to `RequantizationRangePerChannel`. PiperOrigin-RevId: 387693946 Change-Id: Ife8dcbdb021bec4787eef6a4361dd08f17c14bd6
other
rpm
bd36c5dc9fb6d90c46fbfed8c2d67516fc571ec8
1
int pgpPrtParams(const uint8_t * pkts, size_t pktlen, unsigned int pkttype, pgpDigParams * ret) { const uint8_t *p = pkts; const uint8_t *pend = pkts + pktlen; pgpDigParams digp = NULL; struct pgpPkt pkt; int rc = -1; /* assume failure */ while (p < pend) { if (decodePkt(p, (pend - p), &pkt...
null
null
196,889
143803285922112676036425788687927183928
38
Validate and require subkey binding signatures on PGP public keys All subkeys must be followed by a binding signature by the primary key as per the OpenPGP RFC, enforce the presence and validity in the parser. The implementation is as kludgey as they come to work around our simple-minded parser structure without touc...
other
envoy
e9f936d85dc1edc34fabd0a1725ec180f2316353
1
void DefaultCertValidator::updateDigestForSessionId(bssl::ScopedEVP_MD_CTX& md, uint8_t hash_buffer[EVP_MAX_MD_SIZE], unsigned hash_length) { int rc; // Hash all the settings that affect whether the server will ...
null
null
196,893
67659419293076123709338539213514573993
33
CVE-2022-21654 tls allows re-use when some cert validation settings have changed Signed-off-by: Yan Avlasov <yavlasov@google.com>
other
cryptopp
9425e16437439e68c7d96abef922167d68fafaff
1
Integer InvertibleRWFunction::CalculateInverse(RandomNumberGenerator &rng, const Integer &x) const { DoQuickSanityCheck(); ModularArithmetic modn(m_n); Integer r, rInv; do { // do this in a loop for people using small numbers for testing r.Randomize(rng, Integer::One(), m_n - Integer::One()); rInv = modn.Multip...
null
null
196,894
56333125280648792964665629207196928688
35
Fix for CVE-2015-2141. Thanks to Evgeny Sidorov for reporting. Squaring to satisfy Jacobi requirements suggested by JPM.
other
toybox
6d4847934fc0fe47a3254ce6c0396d197a780cf4
1
static int isunder(char *file, char *dir) { char *s1 = xabspath(dir, ABS_FILE), *s2 = xabspath(file, 0), *ss = s2; int rc = strstart(&ss, s2) && (!*ss || *ss=='/' || ss[-1]=='/'); free(s2); free(s1); return rc; }
null
null
196,895
97427692132315706086206005036245647311
10
Don't segfault if xabspath() returns null (spotted by Taolaw).
other
libconfuse
d73777c2c3566fb2647727bb56d9a2295b81669b
1
DLLIMPORT char *cfg_tilde_expand(const char *filename) { char *expanded = NULL; #ifndef _WIN32 /* Do tilde expansion */ if (filename[0] == '~') { struct passwd *passwd = NULL; const char *file = NULL; if (filename[1] == '/' || filename[1] == 0) { /* ~ or ~/path */ passwd = getpwuid(geteuid()); file ...
null
null
196,920
274166286719183774870337789066832153738
46
Fix #163: unterminated username used with getpwnam() Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
other
curl
7e92d12b4e6911f424678a133b19de670e183a59
1
static bool bad_domain(const char *domain) { return !strchr(domain, '.') && !strcasecompare(domain, "localhost"); }
null
null
196,938
279360140156101526766245007952632687468
4
cookies: make bad_domain() not consider a trailing dot fine The check for a dot in the domain must not consider a single trailing dot to be fine, as then TLD + trailing dot is fine and curl will accept setting cookies for it. CVE-2022-27779 Reported-by: Axel Chong Bug: https://curl.se/docs/CVE-2022-27779.html Closes...
other
libjxl
7dfa400ded53919d986c5d3d23446a09e0cf481b
1
Status DecodeImageAPNG(Span<const uint8_t> bytes, ThreadPool* pool, CodecInOut* io) { Reader r; unsigned int id, i, j, w, h, w0, h0, x0, y0; unsigned int delay_num, delay_den, dop, bop, rowbytes, imagesize; unsigned char sig[8]; png_structp png_ptr; png_infop info_ptr; CHUNK chunk; ...
null
null
196,993
123816616739143632951179511270786230002
212
Fix handling of APNG with 0 delay_den (#313)
other
glibc
ee8d5e33adb284601c00c94687bc907e10aec9bb
1
realpath_stk (const char *name, char *resolved, struct scratch_buffer *rname_buf) { char *dest; char const *start; char const *end; int num_links = 0; if (name == NULL) { /* As per Single Unix Specification V2 we must return an error if either parameter is a null pointer. We...
null
null
197,010
137106727751924431395811492905376031581
220
realpath: Set errno to ENAMETOOLONG for result larger than PATH_MAX [BZ #28770] realpath returns an allocated string when the result exceeds PATH_MAX, which is unexpected when its second argument is not NULL. This results in the second argument (resolved) being uninitialized and also results in a memory leak since th...
other
gpac
dae9900580a8888969481cd72035408091edb11b
1
GF_Err SetupWriters(MovieWriter *mw, GF_List *writers, u8 interleaving) { u32 i, trackCount; TrackWriter *writer; GF_TrackBox *trak; GF_ISOFile *movie = mw->movie; mw->total_samples = mw->nb_done = 0; if (!movie->moov) return GF_OK; trackCount = gf_list_count(movie->moov->trackList); for (i = 0; i < trackCoun...
null
null
197,015
100209179535470776698861527430241074796
73
fixed #1659
other
tensorflow
93f428fd1768df147171ed674fee1fc5ab8309ec
1
void Compute(OpKernelContext* ctx) override { const Tensor& in0 = ctx->input(0); const Tensor& in1 = ctx->input(1); auto in0_flat = in0.flat<Tin>(); auto in1_flat = in1.flat<Tin>(); const Device& eigen_device = ctx->eigen_device<Device>(); Tensor* out = nullptr; if (std::is_same<Tin, Tout...
null
null
197,024
92857430627306028918441575167793149967
18
Fix nullptr deref and heap OOB access in binary cwise ops. PiperOrigin-RevId: 387936777 Change-Id: I608b8074cec36a982cca622b7144cb2c43e6e19f
other
drogon
3c785326c63a34aa1799a639ae185bc9453cb447
1
int HttpFileImpl::save(const std::string &path) const { assert(!path.empty()); if (fileName_.empty()) return -1; filesystem::path fsPath(utils::toNativePath(path)); if (!fsPath.is_absolute() && (!fsPath.has_parent_path() || (fsPath.begin()->string() != "." && fsPath.begin()->str...
null
null
197,057
300389952786254526295960796960160809202
28
Prevent malformed upload path causing arbitrary write (#1174)
other
ImageMagick
8043433ba9ce0c550e09f2b3b6a3f5f62d802e6d
1
static Image *ReadDCMImage(const ImageInfo *image_info,ExceptionInfo *exception) { #define ThrowDCMException(exception,message) \ { \ RelinquishDCMMemory(&info,&map,stream_info,stack,data); \ if (info_copy != (DCMInfo *) NULL) \ info_copy=(DCMInfo *) RelinquishDCMInfo(info_copy); \ ThrowReaderException((excep...
null
null
197,068
48091781169139670330064371852708553305
1,309
Coders: https://github.com/ImageMagick/ImageMagick/issues/4947
other
tensorflow
15691e456c7dc9bd6be203b09765b063bf4a380c
1
inline void BinaryBroadcastFiveFold(const ArithmeticParams& unswitched_params, const RuntimeShape& unswitched_input1_shape, const T* unswitched_input1_data, const RuntimeShape& unswitched_input2_shape, ...
null
null
197,095
339735487769984087035979800063883830183
92
Prevent dereferencing of null pointers in TFLite's `add.cc`. PiperOrigin-RevId: 387244946 Change-Id: I56094233327fbd8439b92e1dbb1262176e00eeb9
other
tensorflow
bc9c546ce7015c57c2f15c168b3d9201de679a1d
1
void Compute(OpKernelContext* c) override { core::RefCountPtr<Var> v; OP_REQUIRES_OK(c, LookupResource(c, HandleFromInput(c, 0), &v)); OP_REQUIRES_OK(c, EnsureSparseVariableAccess<Device, T>(c, v.get())); // NOTE: We hold the lock for the whole gather operation instead // of increasing the referen...
null
null
197,110
294361236653337986849576392701719119932
86
Prevent heap oob access in `resource_variable_ops.cc` PiperOrigin-RevId: 387936433 Change-Id: I9e71ddaa8dbd51ec6afbf163a6b3b591f193b4f6
other
tinyexr
a685e3332f61cd4e59324bf3f669d36973d64270
1
static int DecodeChunk(EXRImage *exr_image, const EXRHeader *exr_header, const std::vector<tinyexr::tinyexr_uint64> &offsets, const unsigned char *head, const size_t size, std::string *err) { int num_channels = exr_header->num_channels; int num_s...
null
null
197,111
270881477601119047421793150845336761803
277
Make line_no with too large value(2**20) invalid. Fixes #124
other
mruby
f72315575f78a9a773adbce0ee7d3ec33434cb76
1
gen_assignment(codegen_scope *s, node *tree, node *rhs, int sp, int val) { int idx; int type = nint(tree->car); switch (type) { case NODE_GVAR: case NODE_ARG: case NODE_LVAR: case NODE_IVAR: case NODE_CVAR: case NODE_CONST: case NODE_NIL: case NODE_MASGN: if (rhs) { codegen(s, rhs, VAL)...
null
null
197,128
258543986172995812660215951144295239857
174
codegen.c: fix a argument generation bug in array assignment.
other
linux
d6f5e358452479fa8a773b5c6ccc9e4ec5a20880
1
smb2_ioctl_query_info(const unsigned int xid, struct cifs_tcon *tcon, struct cifs_sb_info *cifs_sb, __le16 *path, int is_dir, unsigned long p) { struct iqi_vars *vars; struct smb_rqst *rqst; struct kvec *rsp_iov; struct cifs_ses *ses = tcon->ses; struct TCP_Server_Info *server = cif...
null
null
197,129
137651590128181455340751167140279772289
223
cifs: fix NULL ptr dereference in smb2_ioctl_query_info() When calling smb2_ioctl_query_info() with invalid smb_query_info::flags, a NULL ptr dereference is triggered when trying to kfree() uninitialised rqst[n].rq_iov array. This also fixes leaked paths that are created in SMB2_open_init() which required SMB2_open_f...
other
linux
505d9dcb0f7ddf9d075e729523a33d38642ae680
1
ccp_run_aes_gcm_cmd(struct ccp_cmd_queue *cmd_q, struct ccp_cmd *cmd) { struct ccp_aes_engine *aes = &cmd->u.aes; struct ccp_dm_workarea key, ctx, final_wa, tag; struct ccp_data src, dst; struct ccp_data aad; struct ccp_op op; unsigned int dm_offset; unsigned int authsize; unsigned int jobid; unsigned int ilen...
null
null
197,135
106903489194098505880029645783744122226
280
crypto: ccp - fix resource leaks in ccp_run_aes_gcm_cmd() There are three bugs in this code: 1) If we ccp_init_data() fails for &src then we need to free aad. Use goto e_aad instead of goto e_ctx. 2) The label to free the &final_wa was named incorrectly as "e_tag" but it should have been "e_final_wa". One erro...
other
tensorflow
6da6620efad397c85493b8f8667b821403516708
1
void Compute(OpKernelContext* ctx) override { const Tensor& input = ctx->input(0); const Tensor& input_min_range = ctx->input(1); const Tensor& input_max_range = ctx->input(2); int num_slices = 1; if (axis_ > -1) { num_slices = input.dim_size(axis_); } const TensorShape& minmax_sha...
null
null
197,142
302073335954432238978657804240958936922
56
Secure tf.raw_ops.QuantizeV2 Validate size and shape of min_range and max_range Ensure axis is within input dims limits PiperOrigin-RevId: 387232799 Change-Id: I36975281f7b5758e9e31a8dcc73fe610ef456318
other
v4l2loopback
64a216af4c09c9ba9326057d7e78994271827eff
1
static void vidioc_fill_name(char *buf, int len, int nr) { if (card_label[nr] != NULL) { snprintf(buf, len, card_label[nr]); } else { snprintf(buf, len, "Dummy video device (0x%04X)", nr); } }
null
null
197,144
226841089703403806195698755509426251551
8
add explicit format specifier to printf() invocations CWE-134
other
Crow
79eec91f00b5fb7df890d4e84b2f048b0841e044
1
inline int qs_parse(char* qs, char* qs_kv[], int qs_kv_size, bool parse_url = true) { int i, j; char * substr_ptr; for(i=0; i<qs_kv_size; i++) qs_kv[i] = NULL; // find the beginning of the k/v substrings or the fragment substr_ptr = parse_url ? qs + strcspn(qs, "?#") : qs; if (parse_url) ...
null
null
197,149
118915588844303374042925937713372011380
45
Fixed issue where an index in qs_parse is incorrectly incremented beyond the maximum possible value
other
njs
86c2c8270240d0a7a1bc4757fd2010fd989e8037
1
njs_typed_array_alloc(njs_vm_t *vm, njs_value_t *args, njs_uint_t nargs, njs_bool_t zeroing, njs_object_type_t type) { double num; int64_t i, length; uint32_t element_size; uint64_t size, offset; njs_int_t ret; njs_value_t *val...
null
null
197,173
106598782395441949366641061237863909526
188
Fixed typed-array ctor when source array is changed while iterating. Previously, the function used optimization for ordinary arrays with no gaps (so called fast arrays). For a fast array code took elements directly from internal flat C array. The direct pointer may become invalid as side-effect of custom valueOf() me...
other
mongo
07b8851825836911265e909d6842d4586832f9bb
1
DocumentSource::GetNextResult DocumentSourceGroup::initialize() { const size_t numAccumulators = _accumulatedFields.size(); // Barring any pausing, this loop exhausts 'pSource' and populates '_groups'. GetNextResult input = pSource->getNext(); for (; input.isAdvanced(); input = pSource->getNext()) { ...
null
null
197,179
299639630867010953869050856327872645652
110
SERVER-60218-44: SERVER-60218 add initialize helper function for document_source_group (cherry picked from commit 867f52afbb79bc00e35c70f8e0681b7d602f97b2)
other
FFmpeg
9ffa49496d1aae4cbbb387aac28a9e061a6ab0a6
1
static int adts_decode_extradata(AVFormatContext *s, ADTSContext *adts, const uint8_t *buf, int size) { GetBitContext gb; PutBitContext pb; MPEG4AudioConfig m4ac; int off; init_get_bits(&gb, buf, size * 8); off = avpriv_mpeg4audio_get_config2(&m4ac, buf, size, 1, s); if (off < 0) re...
null
null
197,185
27134847231468977506511316145171824130
48
avformat/adtsenc: return value check for init_get_bits in adts_decode_extradata As the second argument for init_get_bits (buf) can be crafted, a return value check for this function call is necessary. 'buf' is part of 'AVPacket pkt'. replace init_get_bits with init_get_bits8. Signed-off-by: Michael Niedermayer <mic...
other
ompl
abb4fadcb4e4fe4c9cf41e5e7706143a66948eb7
1
ompl::geometric::VFRRT::Motion *ompl::geometric::VFRRT::extendTree(Motion *m, base::State *rstate, const Eigen::VectorXd &v) { base::State *newState = si_->allocState(); si_->copyState(newState, m->state); double d = si_->distance(m->state,...
null
null
197,192
5968465012659553519179307063249642027
29
fix memory leak in VFRRT. closes #839
other
systemd-stable
b00674347337b7531c92fdb65590ab253bb57538
1
int unit_name_path_escape(const char *f, char **ret) { char *p, *s; assert(f); assert(ret); p = strdupa(f); if (!p) return -ENOMEM; path_simplify(p, false); if (empty_or_root(p)) s = strdup("-"); else { i...
null
null
197,197
185422117112056266441612678792600336702
32
basic/unit-name: do not use strdupa() on a path The path may have unbounded length, for example through a fuse mount. CVE-2021-33910: attacked controlled alloca() leads to crash in systemd and ultimately a kernel panic. Systemd parses the content of /proc/self/mountinfo and each mountpoint is passed to mount_setup_un...
other
njs
ab1702c7af9959366a5ddc4a75b4357d4e9ebdc1
1
njs_module_path(njs_vm_t *vm, const njs_str_t *dir, njs_module_info_t *info) { char *p; size_t length; njs_bool_t trail; char src[NJS_MAX_PATH + 1]; trail = 0; length = info->name.length; if (dir != NULL) { length = dir->length; if (length == 0) { ...
null
null
197,223
61727745120585183166403187671025402809
57
Fixed typo while calculating module path length. The issue was introduced in 77c398f26d7e (not released yet).
other
subversion
e1b615840932fb46aefe1cd90d2115720af4600e
1
synchronized_authz_initialize(void *baton, apr_pool_t *pool) { #if APR_HAS_THREADS svn_boolean_t multi_threaded = TRUE; #else svn_boolean_t multi_threaded = FALSE; #endif SVN_ERR(svn_object_pool__create(&authz_pool, multi_threaded, pool)); SVN_ERR(svn_object_pool__create(&filtered_pool, multi_threaded, pool));...
null
null
197,238
179608994110544319539454664346224659273
13
Fix issue #4880 "Use-after-free of object-pools when used as httpd module" Ensure that we initialize authz again if the pool which our authz caches depend on is cleared. Apache HTTPD may run pre/post config hooks multiple times and clear its global configuration pool which our authz caching pools depend on. Reported-...
other
tensorflow
203214568f5bc237603dbab6e1fd389f1572f5c9
1
void Compute(OpKernelContext* ctx) override { try { const Tensor& input = ctx->input(kInputTensorIndex); const Tensor& input_min_vec = ctx->input(kInputMinVecIndex); float* input_min_vec_data = (float*)const_cast<void*>( static_cast<const void*>(input_min_vec.flat<float>().data())); ...
null
null
197,239
103677223950190323637234469418983500216
109
Reorganize and add more validation to MKL requantization PiperOrigin-RevId: 387901341 Change-Id: I2515b9034c64e113db0bcec8337d30643ab0a0f1
other
tensorflow
537bc7c723439b9194a358f64d871dd326c18887
1
TfLiteStatus Prepare(TfLiteContext* context, TfLiteNode* node) { const auto* params = reinterpret_cast<TfLiteSVDFParams*>(node->builtin_data); OpData* op_data = reinterpret_cast<OpData*>(node->user_data); int scratch_tensor_index = op_data->scratch_tensor_index; // Check we have all the inputs and outputs we n...
null
null
197,242
261286652604987048068530973039778075570
206
Fix a null pointer exception caused by branching on uninitialized data. This is due to not checking that the params for the quantization exists. If there is no quantization, we should not access the `.params` field. PiperOrigin-RevId: 385163909 Change-Id: I2beb8d50649b6542db224c163033fbcbaa49314f
other
tensorflow
ee119d4a498979525046fba1c3dd3f13a039fbb1
1
Status ShapeRefiner::InferShapesForFunctionSubNode( const Node* node, InferenceContext* outer_context) { TF_RETURN_IF_ERROR(AddNodeInternal(node, outer_context)); InferenceContext* node_context = CHECK_NOTNULL(GetContext(node)); if (StringPiece(node->type_string()) == kArgOp) { // Handle special node: fu...
null
null
197,247
293529933962281304259093229829962668360
63
Fix segmentation fault in shape inference logic. When running shape functions, some functions (such as `MutableHashTableShape`) produce extra output information in the form of a `ShapeAndType` struct. The shapes embedded in this struct are owned by an inference context that is cleaned up almost immediately; if the up...
other
tensorflow
e6cf28c72ba2eb949ca950d834dd6d66bb01cfae
1
void Compute(OpKernelContext* ctx) override { const Tensor& a = ctx->input(0); const Tensor& b = ctx->input(1); OP_REQUIRES(ctx, TensorShapeUtils::IsMatrix(a.shape()), errors::InvalidArgument("a is not a matrix")); OP_REQUIRES(ctx, TensorShapeUtils::IsMatrix(b.shape()), ...
null
null
197,262
55113062603670285543450185774452114619
107
Validate that matrix dimension sizes in SparseMatMul are positive. PiperOrigin-RevId: 401149683 Change-Id: Ib33eafc561a39c8741ece80b2edce6d4aae9a57d
other
linux
cc8f7fe1f5eab010191aa4570f27641876fa1267
1
static struct bio *bio_copy_kern(struct request_queue *q, void *data, unsigned int len, gfp_t gfp_mask, int reading) { unsigned long kaddr = (unsigned long)data; unsigned long end = (kaddr + len + PAGE_SIZE - 1) >> PAGE_SHIFT; unsigned long start = kaddr >> PAGE_SHIFT; struct bio *bio; void *p = data; int nr_pa...
null
null
197,302
175211225765149879157074417577663475920
56
block-map: add __GFP_ZERO flag for alloc_page in function bio_copy_kern Add __GFP_ZERO flag for alloc_page in function bio_copy_kern to initialize the buffer of a bio. Signed-off-by: Haimin Zhang <tcs.kernel@gmail.com> Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Link: ...
other
pjproject
11559e49e65bdf00922ad5ae28913ec6a198d508
1
PJ_DEF(pj_status_t) pjmedia_rtcp_fb_parse_rpsi( const void *buf, pj_size_t length, pjmedia_rtcp_fb_rpsi *rpsi) { pjmedia_rtcp_common *hdr = (pjmedia_rtcp_common*) buf; pj_uint8_t *p; pj_uint8_t padlen; pj_size_t rpsi_len; PJ_ASSERT_RETURN(buf && rpsi, PJ_EINVAL); PJ_ASSERT_RETURN...
null
null
197,305
149489462462919088082154669395179087984
29
Merge pull request from GHSA-vhxv-phmx-g52q * Prevent OOB read/write when parsing RTCP FB RPSI * Add log information * Modification based on comments.
other
janet
7fda7709ff15ab4b4cdea57619365eb2798f15c4
1
JANET_CORE_FN(cfun_array_new_filled, "(array/new-filled count &opt value)", "Creates a new array of `count` elements, all set to `value`, which defaults to nil. Returns the new array.") { janet_arity(argc, 1, 2); int32_t count = janet_getinteger(argv, 0); Janet x = (argc == 2) ? ...
null
null
197,313
114433653419239968575237651226501775026
13
fix negative count passed to cfun_array_new_filled
other
tensorflow
cff267650c6a1b266e4b4500f69fbc49cdd773c5
1
void Compute(OpKernelContext* ctx) override { const Tensor& handle = ctx->input(0); const string& name = handle.scalar<tstring>()(); auto session_state = ctx->session_state(); OP_REQUIRES(ctx, session_state != nullptr, errors::FailedPrecondition( "DeleteSessionTenso...
null
null
197,318
241300971074573611654671024037362704586
9
Fix tf.raw_ops.DeleteSessionTensor vulnerability with invalid `handle`. Check that `handle` input is actually a scalar before treating it as such. PiperOrigin-RevId: 445228994
other
tensorflow
f09caa532b6e1ac8d2aa61b7832c78c5b79300c6
1
static Status ParseEquation(const string& equation, OperandLabels* input_labels, Labels* output_labels, std::vector<DimensionType>* label_types, OperandLabelCounts* input_label_counts, ...
null
null
197,326
89619662301574140486589919659052622416
56
Fix EinsumHelper::ParseEquation to avoid uninitialized accesses. EinsumHelper::ParseEquation is supposed to return true or false in input_has_ellipsis and output_has_ellipsis to indicate whether there is ellipsis in the inputs and output. Previously, when there is no ellipsis in the inputs or output, the routine doesn...
other