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
linux
9ad36309e2719a884f946678e0296be10f0bb4c1
1
static int route4_change(struct net *net, struct sk_buff *in_skb, struct tcf_proto *tp, unsigned long base, u32 handle, struct nlattr **tca, void **arg, u32 flags, struct netlink_ext_ack *extack) { struct route4_head *head = rtnl_dereference(tp->root); struct route4_filter __rcu **fp; struct route4_filte...
null
null
197,329
57022267833203831104909751798504283544
95
net_sched: cls_route: remove from list when handle is 0 When a route filter is replaced and the old filter has a 0 handle, the old one won't be removed from the hashtable, while it will still be freed. The test was there since before commit 1109c00547fc ("net: sched: RCU cls_route"), when a new filter was not allocat...
other
tensorflow
68867bf01239d9e1048f98cbad185bf4761bedd3
1
Status AutoParallel::Initialize(const GrapplerItem& item) { num_gpus_ = GetNumAvailableGPUs(); LOG(INFO) << "Number of GPUs: " << num_gpus_; item_ = &item; graph_ = item.graph; LOG(INFO) << "Original graph size: " << graph_.node_size(); if (item.fetch.empty()) { return Status(error::INVALID_ARGUMENT, "N...
null
null
197,359
44781454719041051172233993396995938942
125
Prevent unitialized variable use in grappler. PiperOrigin-RevId: 399702928 Change-Id: Id7e75451fbff297692dfb687f60ea04b25c96b24
other
lighttpd1.4
971773f1fae600074b46ef64f3ca1f76c227985f
1
static handler_t wstunnel_handler_setup (request_st * const r, plugin_data * const p) { handler_ctx *hctx = r->plugin_ctx[p->id]; int hybivers; hctx->errh = r->conf.errh;/*(for mod_wstunnel-specific DEBUG_* macros)*/ hctx->conf = p->conf; /*(copies struct)*/ hybivers = wstunnel_check_request(r, hctx...
null
null
197,373
109983880448084962630397912027710757424
73
[mod_wstunnel] fix crash with bad hybivers (fixes #3165) (thx Michał Dardas) x-ref: "mod_wstunnel null pointer dereference" https://redmine.lighttpd.net/issues/3165
other
tensorflow
4071d8e2f6c45c1955a811fee757ca2adbe462c1
1
void Compute(OpKernelContext* context) override { const Tensor& input = context->input(0); const Tensor& dims = context->input(1); if (TensorShapeUtils::IsScalar(input.shape())) { context->set_output(0, input); } else { const int input_dims = input.dims(); OP_REQUIRES(context, Tenso...
null
null
197,395
269562292786484769082922681948698599079
45
Fix FPE issue with `tf.raw_ops.Reverse`. PiperOrigin-RevId: 371176973 Change-Id: Ic6d483bfc95313ec2299c2d1c956cfe96c96626c
other
tensorflow
9e82dce6e6bd1f36a57e08fa85af213e2b2f2622
1
void RestoreTensor(OpKernelContext* context, checkpoint::TensorSliceReader::OpenTableFunction open_func, int preferred_shard, bool restore_slice, int restore_index) { const Tensor& file_pattern_t = context->input(0); { const int64_t size = file_pattern_t.NumElements(); ...
null
null
197,466
35516253093365065269122878247898074447
90
Fix NPE in restoring code. PiperOrigin-RevId: 388303253 Change-Id: Ia8c68568cb854bca538909a182b31a618d68ce55
other
FFmpeg
c953baa084607dd1d84c3bfcce3cf6a87c3e6e05
1
static int build_open_gop_key_points(AVStream *st) { int k; int sample_id = 0; uint32_t cra_index; MOVStreamContext *sc = st->priv_data; if (st->codecpar->codec_id != AV_CODEC_ID_HEVC || !sc->sync_group_count) return 0; /* Build an unrolled index of the samples */ sc->sample_offset...
null
null
197,473
201473938080232102307587175073350073803
54
avformat/mov: Check count sums in build_open_gop_key_points() Fixes: ffmpeg.md Fixes: Out of array access Fixes: CVE-2022-2566 Found-by: Andy Nguyen <theflow@google.com> Found-by: 3pvd <3pvd@google.com> Reviewed-by: Andy Nguyen <theflow@google.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
other
gpac
dc7de8d3d604426c7a6e628d90cb9fb88e7b4c2c
1
GF_Err BD_DecMFFieldVec(GF_BifsDecoder * codec, GF_BitStream *bs, GF_Node *node, GF_FieldInfo *field, Bool is_mem_com) { GF_Err e; u32 NbBits, nbFields; u32 i; GF_ChildNodeItem *last; u8 qp_local, qp_on, initial_qp; GF_FieldInfo sffield; memset(&sffield, 0, sizeof(GF_FieldInfo)); sffield.fieldIndex = field->fi...
null
null
197,499
299257728605197431750731122978204720459
96
fixed #2212
other
curl
914aaab9153764ef8fa4178215b8ad89d3ac263a
1
static CURLUcode hostname_check(struct Curl_URL *u, char *hostname) { size_t len; size_t hlen = strlen(hostname); if(hostname[0] == '[') { const char *l = "0123456789abcdefABCDEF:."; if(hlen < 4) /* '[::]' is the shortest possible valid string */ return CURLUE_BAD_IPV6; hostname++; hlen -= ...
null
null
197,503
335913449235086315587446947934344013072
73
urlapi: reject percent-decoding host name into separator bytes CVE-2022-27780 Reported-by: Axel Chong Bug: https://curl.se/docs/CVE-2022-27780.html Closes #8826
other
libjpeg
187035b9726710b4fe11d565c7808975c930895d
1
void HierarchicalBitmapRequester::PrepareForDecoding(void) { #if ACCUSOFT_CODE UBYTE i; BuildCommon(); if (m_ppDecodingMCU == NULL) { m_ppDecodingMCU = (struct Line **)m_pEnviron->AllocMem(sizeof(struct Line *) * m_ucCount*8); memset(m_ppDecodingMCU,0,sizeof(struct Line *) * m_ucCount * 8); } if (...
null
null
197,511
268108991876913793224174807817149913216
35
The code now checks for consistency of the MCU sizes across hierarchical levels, and fails in case they are different.
other
glewlwyd
0efd112bb62f566877750ad62ee828bff579b4e2
1
static json_t * check_attestation_fido_u2f(json_t * j_params, unsigned char * credential_id, size_t credential_id_len, unsigned char * cert_x, size_t cert_x_len, unsigned char * cert_y, size_t cert_y_len, cbor_item_t * att_stmt, unsigned char * rpid_hash, size_t rpid_hash_len, const unsigned char * client_data) { jso...
null
null
197,517
200217168569920456522529557748799680683
150
Fix fido2 signature validation bug
other
tensorflow
098e7762d909bac47ce1dbabe6dfd06294cb9d58
1
void Compute(OpKernelContext* ctx) override { const Tensor& gradient = ctx->input(0); const Tensor& input = ctx->input(1); Tensor* input_backprop = nullptr; OP_REQUIRES_OK(ctx, ctx->allocate_output(0, input.shape(), &input_backprop)); OP_REQUIRES( ctx, axis_ >= -1, ...
null
null
197,518
323622655184970473925088678540103856747
68
Fix tf.raw_ops.QuantizeAndDequantizeV4Grad vulnerability with invalid input_min or input_max. Check that argument is actually a scalar before treating it as such. PiperOrigin-RevId: 445198280
other
wolfMQTT
84d4b53122e0fa0280c7872350b89d5777dabbb2
1
static int MqttClient_WaitType(MqttClient *client, void *packet_obj, byte wait_type, word16 wait_packet_id, int timeout_ms) { int rc; word16 packet_id; MqttPacketType packet_type; #ifdef WOLFMQTT_MULTITHREAD MqttPendResp *pendResp; int readLocked; #endif MqttMsgStat* mms_stat; int waitMa...
null
null
197,565
199649762322354424417738575772569260931
241
Fix wolfmqtt-fuzzer: Null-dereference WRITE in MqttProps_Free
other
libde265
e83f3798dd904aa579425c53020c67e03735138d
1
de265_error slice_segment_header::read(bitreader* br, decoder_context* ctx, bool* continueDecoding) { *continueDecoding = false; reset(); // set defaults dependent_slice_segment_flag = 0; // read bitstream first_slice_segment_in_pic_flag = get_bits(br,1); if (c...
null
null
197,574
48645466230561722425504217043798688139
524
fix check for valid PPS idx (#298)
other
radare2
fc285cecb8469f0262db0170bf6dd7c01d9b8ed5
1
static RList *oneshotall_buffer(RBin *bin, RBuffer *b) { RList *list = r_list_newf (free); RBinXtrData *meta = get_the_meta (bin, b); r_list_append (list, meta); return list; }
null
null
197,579
140388220319988183510409398909926632593
6
Fix #20354
other
ZLMediaKit
7d8b212a3c3368bc2f6507cb74664fc419eb9327
1
void RtmpProtocol::handle_chunk(RtmpPacket::Ptr packet) { auto &chunk_data = *packet; switch (chunk_data.type_id) { case MSG_ACK: { if (chunk_data.buffer.size() < 4) { throw std::runtime_error("MSG_ACK: Not enough data"); } //auto bytePeerRecv = load_b...
null
null
197,592
35629967477238943936739294697312947509
143
修复rtmp汇报窗口太小导致循环递归的bug:#1839
other
njs
ad48705bf1f04b4221a5f5b07715ac48b3160d53
1
njs_function_frame_save(njs_vm_t *vm, njs_frame_t *frame, u_char *pc) { size_t value_count, n; njs_value_t *start, *end, *p, **new, *value, **local; njs_function_t *function; njs_native_frame_t *active, *native; *frame = *vm->active_frame; frame->previous_active_frame...
null
null
197,593
59057408530075801979165560392552080100
51
Fixed frame allocation from an awaited frame. njs_function_frame_save() is used to save the awaited frame when "await" instruction is encountered. The saving was done as a memcpy() of existing runtime frame. njs_function_frame_alloc() is used to alloc a new function frame, this function tries to use a spare prealloca...
other
njs
36f04a3178fcb6da8513cc3dbf35215c2a581b3f
1
njs_string_prototype_replace(njs_vm_t *vm, njs_value_t *args, njs_uint_t nargs, njs_index_t unused) { u_char *r; size_t length, search_length, ret_length, size; int64_t pos; njs_int_t ret; njs_value_t *this, *search, *replace; njs_value_t ...
null
null
197,608
313418285314830712713325262947868404424
122
Fixed String.prototype.replace() with byte strings. This closes #522 issue on Github.
other
curl
058f98dc3fe595f21dc26a5b9b1699e519ba5705
1
static void hashkey(struct connectdata *conn, char *buf, size_t len, /* something like 128 is fine */ const char **hostp) { const char *hostname; long port = conn->remote_port; #ifndef CURL_DISABLE_PROXY if(conn->bits.httpproxy && !conn->bits.tunnel_proxy) { hostname ...
null
null
197,610
141759203618228167043873707310570221475
27
conncache: include the zone id in the "bundle" hashkey Make connections to two separate IPv6 zone ids create separate connections. Reported-by: Harry Sintonen Bug: https://curl.se/docs/CVE-2022-27775.html Closes #8747
other
open-vm-tools
70a74758bfe0042c27f15ce590fb21a2bc54d745
1
Proto_SecurityCheckRequest(ServiceConnection *conn, ProtoRequest *req) { VGAuthError err; gboolean isSecure = ServiceNetworkIsConnectionPrivateSuperUser(conn); switch (req->reqType) { /* * This comes over the public connection; alwsys let it through. */ case P...
null
null
197,611
197467841338532217297599212611526262605
94
Properly check authorization on incoming guestOps requests. Fix public pipe request checks. Only a SessionRequest type should be accepted on the public pipe.
other
tensorflow
abcced051cb1bd8fb05046ac3b6023a7ebcc4578
1
Status TensorSliceReader::GetTensor( const string& name, std::unique_ptr<tensorflow::Tensor>* out_tensor) const { DataType type; TensorShape shape; TensorSlice slice; { mutex_lock l(mu_); const TensorSliceSet* tss = gtl::FindPtrOrNull(tensors_, name); if (tss == nullptr) { return errors::N...
null
null
197,615
82915190253600026971804388780694146918
52
Prevent crashes when loading tensor slices with unsupported types. Also fix the `Tensor(const TensorShape&)` constructor swapping the LOG(FATAL) messages for the unset and unsupported types. PiperOrigin-RevId: 392695027 Change-Id: I4beda7db950db951d273e3259a7c8534ece49354
other
tensorflow
e84c975313e8e8e38bb2ea118196369c45c51378
1
void Compute(OpKernelContext* const context) override { // node_id_range const Tensor* node_id_range_t; OP_REQUIRES_OK(context, context->input("node_id_range", &node_id_range_t)); const auto node_id_range = node_id_range_t->vec<int32>(); const int32_t node_id_first = node_id_range(0); // inclusiv...
null
null
197,621
114788244564354532287660481522170220382
150
In tf.raw_ops.BoostedTreesSparseCalculateBestFeatureSplit, limit stat_dim in stats_summary_indices to under stats_dims in stats_summary_shape PiperOrigin-RevId: 387171191 Change-Id: I83ca8a75b22aa78c037e8b98779da6cced16bfaa
other
njs
6a40a85ff239497c6458c7dbef18f6a2736fe992
1
njs_promise_perform_then(njs_vm_t *vm, njs_value_t *value, njs_value_t *fulfilled, njs_value_t *rejected, njs_promise_capability_t *capability) { njs_int_t ret; njs_value_t arguments[2]; njs_promise_t *promise; njs_function_t *function; njs_promis...
null
null
197,632
155587680052916618369463188511595578744
85
Fixed type confusion bug while resolving promises. Previously, the internal function njs_promise_perform_then() which implements PerformPromiseThen() expects its first argument to always be a promise instance. This assertion might be invalid because the functions corresponding to Promise.prototype.then() and Promise....
other
njs
eafe4c7a326b163612f10861392622b5da5b1792
1
njs_object_iterate_reverse(njs_vm_t *vm, njs_iterator_args_t *args, njs_iterator_handler_t handler) { double idx; int64_t i, from, to, length; njs_int_t ret; njs_array_t *array, *keys; njs_value_t *entry, *value, prop, character, string_obj; ...
null
null
197,666
55404641652654760762273779055017294350
174
Fixed Array.prototype.lastIndexOf() with unicode string as "this". Previously, when lastIndexOf() was called with unicode string as "this" argument and a negative "fromIndex" argument null-pointer dererence might occur because njs_string_offset() was called with invalid index value whereas njs_string_offset() should a...
other
linux
6c342ce2239c182c2428ce5a44cb32330434ae6e
1
static void mctp_serial_close(struct tty_struct *tty) { struct mctp_serial *dev = tty->disc_data; int idx = dev->idx; unregister_netdev(dev->netdev); cancel_work_sync(&dev->tx_work); ida_free(&mctp_serial_ida, idx); }
null
null
197,718
38292062647437607669587167983842602858
9
mctp: serial: Cancel pending work from ndo_uninit handler We cannot do the cancel_work_sync from after the unregister_netdev, as the dev pointer is no longer valid, causing a uaf on ldisc unregister (or device close). Instead, do the cancel_work_sync from the ndo_uninit op, where the dev still exists, but the queue h...
other
tensorflow
be7a4de6adfbd303ce08be4332554dff70362612
1
void Compute(OpKernelContext* context) override { // Read ragged_splits inputs. OpInputList ragged_nested_splits_in; OP_REQUIRES_OK(context, context->input_list("rt_nested_splits", &ragged_nested_splits_in)); const int ragged_nested_splits_len = ragged_n...
null
null
197,719
209500931068648342443345704454092620756
45
Ensure non-empty rt_nested_splits in tf.raw_ops.RaggedTensorToVariant PiperOrigin-RevId: 387664237 Change-Id: Ia1700c34b5610873d63561abc86e23b46ead93b3
other
qdecoder
ce7c8a7ac450a823a11b06508ef1eb7441241f81
1
size_t _q_urldecode(char *str) { if (str == NULL) { return 0; } char *pEncPt, *pBinPt = str; for (pEncPt = str; *pEncPt != '\0'; pEncPt++) { switch (*pEncPt) { case '+': { *pBinPt++ = ' '; break; } case '%': { ...
null
null
197,741
188552871240633623427606115202458159863
28
security update: add check on improperly encoded input
other
tensorflow
c79ba87153ee343401dbe9d1954d7f79e521eb14
1
Status TransposeShapeFn(InferenceContext* c) { ShapeHandle input = c->input(0); ShapeHandle perm_shape = c->input(1); const Tensor* perm = c->input_tensor(1); DimensionHandle perm_elems = c->NumElements(perm_shape); // If we don't have rank information on the input or value information on // perm we can't r...
null
null
197,748
34055993943311259251029225987542874775
65
Make Transpose's shape inference function validate that negative `perm` values are within the tensor's rank. PiperOrigin-RevId: 403252853 Change-Id: Ia6b31b45b237312668bb31c2c3b3c7bbce2d2610
other
tensorflow
bb6a0383ed553c286f87ca88c207f6774d5c4a8f
1
TfLiteStatus EvalGatherNd(TfLiteContext* context, const TfLiteTensor* params, const TfLiteTensor* indices, TfLiteTensor* output) { switch (params->type) { case kTfLiteFloat32: return GatherNd<float, IndicesT>(params, indices, output); case kTfLiteUInt8: return GatherNd<ui...
null
null
197,760
79501722422646953902317860019376579160
24
Prevent heap OOB read in TFLite's `gather_nd.cc`. Passing negative indices is illegal but there was a missing check so that resulted in OOB accesses. PiperOrigin-RevId: 387208551 Change-Id: I6b7a8a62d3e7c13a16d81619e5bc23ae2cdbc7fd
other
qemu
f9a70e79391f6d7c2a912d785239ee8effc1922d
1
static int protocol_client_msg(VncState *vs, uint8_t *data, size_t len) { int i; uint16_t limit; VncDisplay *vd = vs->vd; if (data[0] > 3) { update_displaychangelistener(&vd->dcl, VNC_REFRESH_INTERVAL_BASE); } switch (data[0]) { case VNC_MSG_CLIENT_SET_PIXEL_FORMAT: if (len...
null
null
197,796
134241989503304135961732860410446769152
140
ui/vnc: limit client_cut_text msg payload size currently a malicious client could define a payload size of 2^32 - 1 bytes and send up to that size of data to the vnc server. The server would allocated that amount of memory which could easily create an out of memory condition. This patch limits the payload size to 1MB...
other
tensorflow
368af875869a204b4ac552b9ddda59f6a46a56ec
1
bool TensorSliceReader::CopySliceData(const string& name, const TensorSlice& slice, T* data) const { std::vector<std::pair<TensorSlice, string>> details; const TensorSliceSet* tss; { mutex_lock l(mu_); tss = FindTensorSlice(name, slice, &details); if (!tss && !all...
null
null
197,801
125021583934003130290771039701895727492
45
Avoid buffer overflow when loading tensors with insufficient data from checkpoints. `CopyDataFromTensorSliceToTensorSlice` does not (and cannot conveniently) provide any bounds checking on its own, so the size is instead checked prior to passing unvalidated data to that function. PiperOrigin-RevId: 392971286 Change-I...
other
curl
8dfc93e573ca740544a2d79ebb0ed786592c65c3
1
Curl_cookie_add(struct Curl_easy *data, /* * The 'data' pointer here may be NULL at times, and thus * must only be used very carefully for things that can deal * with data being NULL. Such as infof() and similar */ struc...
null
null
197,805
340011739869148140831706810976304098697
717
cookie: reject cookies with "control bytes" Rejects 0x01 - 0x1f (except 0x09) plus 0x7f Reported-by: Axel Chong Bug: https://curl.se/docs/CVE-2022-35252.html CVE-2022-35252 Closes #9381
other
mruby
47068ae07a5fa3aa9a1879cdfe98a9ce0f339299
1
mrb_f_send(mrb_state *mrb, mrb_value self) { mrb_sym name; mrb_value block, *regs; mrb_method_t m; struct RClass *c; mrb_callinfo *ci = mrb->c->ci; int n = ci->n; if (ci->cci > CINFO_NONE) { funcall:; const mrb_value *argv; mrb_int argc; mrb_get_args(mrb, "n*&", &name, &argv, &argc, &block)...
null
null
197,808
162694432190174106015089185108525789681
64
vm.c: packed arguments length may be zero for `send` method.
other
gpac
c535bad50d5812d27ee5b22b54371bddec411514
1
static GF_Err BM_ParseGlobalQuantizer(GF_BifsDecoder *codec, GF_BitStream *bs, GF_List *com_list) { GF_Node *node; GF_Command *com; GF_CommandField *inf; node = gf_bifs_dec_node(codec, bs, NDT_SFWorldNode); if (!node) return GF_NON_COMPLIANT_BITSTREAM; /*reset global QP*/ if (codec->scenegraph->global_qp) { g...
null
null
197,824
117674170084737235817324369429005978526
36
fixed #2194
other
jerryscript
f3a420b672927037beb4508d7bdd68fb25d2caf6
1
lexer_expect_object_literal_id (parser_context_t *context_p, /**< context */ uint32_t ident_opts) /**< lexer_obj_ident_opts_t option bits */ { lexer_skip_spaces (context_p); if (context_p->source_p >= context_p->source_end_p) { parser_raise_error (context_p, PARSER_ERR_PROPERT...
null
null
197,825
18090551596235490242321914030640150439
221
Fix class static block opening brace parsing (#4942) The next character should not be consumed after finding the static block opening brace. This patch fixes #4916. JerryScript-DCO-1.0-Signed-off-by: Martin Negyokru negyokru@inf.u-szeged.hu
other
tensorflow
7731e8dfbe4a56773be5dc94d631611211156659
1
bool IsConstantFoldable( const Node* n, const std::unordered_map<string, std::vector<PartialTensorShape>>* shape_map, const std::function<bool(const Node*)>& consider, int64_t max_constant_size_in_bytes, std::unordered_map<const Node*, std::vector<Tensor>>* shape_replacement_map) { ...
null
null
197,826
172373573712419656450812250984956481158
70
Don't constant-fold DT_RESOURCE constants. PiperOrigin-RevId: 391803952 Change-Id: I0ea3ec31d3e7dfda0f03b4027a237f08d00a3091
other
samba
d92dfb0dabf9cfccb86f2b1146d6c353af2e1435
1
static NTSTATUS ldapsrv_SearchRequest(struct ldapsrv_call *call) { struct ldap_SearchRequest *req = &call->request->r.SearchRequest; struct ldap_Result *done; struct ldapsrv_reply *done_r; TALLOC_CTX *local_ctx; struct ldapsrv_context *callback_ctx = NULL; struct ldb_context *samdb = talloc_get_type(call->conn->l...
null
null
197,830
314918662591421001470003516678988238334
238
CVE-2021-3670 ldap_server: Remove duplicate print of LDAP search details BUG: https://bugzilla.samba.org/show_bug.cgi?id=14694 Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> (cherry picked from commit 2b3af3b560c9617a233c131376c870fce146c002)
other
radare2
3345147916b9bb3da225248d571cdbac690c0c4d
1
R_API bool r_io_bank_map_add_top(RIO *io, const ut32 bankid, const ut32 mapid) { RIOBank *bank = r_io_bank_get (io, bankid); RIOMap *map = r_io_map_get (io, mapid); r_return_val_if_fail (io && bank && map, false); RIOMapRef *mapref = _mapref_from_map (map); if (!mapref) { return false; } RIOSubMap *sm = r_io_s...
null
null
197,831
63723229772803148724831552912896980310
98
Properly fix the UAF in r_io_bank_map_add_top ##crash * Associated with the CVE-2022-0559 * Reported by alkyne Choi via huntr.dev
other
zsh
c187154f47697cdbf822c2f9d714d570ed4a0fd1
1
parsecolorchar(zattr arg, int is_fg) { if (bv->fm[1] == '{') { char *ep; bv->fm += 2; /* skip over F{ */ if ((ep = strchr(bv->fm, '}'))) { char oc = *ep, *col, *coll; *ep = '\0'; /* expand the contents of the argument so you can use * %v for example */ coll = col = promptexpand(bv->fm, ...
null
null
197,850
20338572218079855309761187886154019823
24
security/41: Don't perform PROMPT_SUBST evaluation on %F/%K arguments Mitigates CVE-2021-45444
other
openscad
b81369dffc3f385257a9b1f5c271118a88671d6d
1
static std::string getComment(const std::string &fulltext, int line) { if (line < 1) return ""; // Locate line unsigned int start = 0; for (; start<fulltext.length() ; ++start) { if (line <= 1) break; if (fulltext[start] == '\n') line--; } int end = start + 1; while (fulltext[end] != '\n') end++; std::st...
null
null
197,891
313568077470000783177680974177297728787
38
Add file bounds check to comment parser
other
tensorflow
eb921122119a6b6e470ee98b89e65d721663179d
1
TfLiteStatus Gather(const TfLiteGatherParams& params, const TfLiteTensor* input, const TfLiteTensor* positions, TfLiteTensor* output) { tflite::GatherParams op_params; op_params.axis = params.axis; op_params.batch_dims = params.batch_dims; optimized_ops::Gather(op_params, GetTensorShape(inpu...
null
null
197,893
141143556549957882519288651479279376437
11
Prevent heap OOB read in TFLite's `gather.cc`. Passing negative indices is illegal but there was a missing check so that resulted in OOB accesses. PiperOrigin-RevId: 387231300 Change-Id: I3111b54b2f232638d795be17efc46abe4ede6bf8
other
tensorflow
96f364a1ca3009f98980021c4b32be5fdcca33a1
1
void Compute(OpKernelContext* ctx) override { const Tensor& gradient = ctx->input(0); const Tensor& input = ctx->input(1); Tensor* input_backprop = nullptr; OP_REQUIRES_OK(ctx, ctx->allocate_output(0, input.shape(), &input_backprop)); OP_REQUIRES( ctx, input.IsSameSize(...
null
null
197,898
310199121109835568765569218593347618755
61
Validate axis input in tf.raw_ops.QuantizeAndDequantizeV4Grad PiperOrigin-RevId: 388291385 Change-Id: I3bab68dc61d935afa96c0da021a7b722c6dc8dc8
other
u-boot
2ac0baab4aff1a0b45067d0b62f00c15f4e86856
1
int sqfs_readdir(struct fs_dir_stream *fs_dirs, struct fs_dirent **dentp) { struct squashfs_super_block *sblk = ctxt.sblk; struct squashfs_dir_stream *dirs; struct squashfs_lreg_inode *lreg; struct squashfs_base_inode *base; struct squashfs_reg_inode *reg; int i_number, offset = 0, ret; struct fs_dirent *dent; ...
null
null
197,899
185658142793571267133875338779495413570
112
fs/squashfs: sqfs_read: Prevent arbitrary code execution Following Jincheng's report, an out-of-band write leading to arbitrary code execution is possible because on one side the squashfs logic accepts directory names up to 65535 bytes (u16), while U-Boot fs logic accepts directory names up to 255 bytes long. Prevent...
other
cortx-s3server
dd6bfbc4b84f14f898598922ca9efd5aaa645c5d
1
int mempool_destroy(MemoryPoolHandle *handle) { struct mempool *pool = NULL; struct memory_pool_element *pool_item; char *log_msg_fmt = "mempool(%p): free(%p) called for buffer size(%zu)"; char log_msg[200]; if (handle == NULL) { return S3_MEMPOOL_INVALID_ARG; } pool = (struct mempool *)*handle; i...
null
null
197,912
135921271694027953193959070993632037428
64
avoid the unrelesed lock after the method returns (#1041) Update s3_memory_pool.c. Avoid the unreleased lock pool->lock after the method returns. Co-authored-by: nileshgovande <63101371+nileshgovande@users.noreply.github.com>
other
crun
1aeeed2e4fdeffb4875c0d0b439915894594c8c6
1
crun_command_exec (struct crun_global_arguments *global_args, int argc, char **argv, libcrun_error_t *err) { int first_arg = 0, ret = 0; libcrun_context_t crun_context = { 0, }; cleanup_process_schema runtime_spec_schema_config_schema_process *process = NULL; struct libcrun_container_exec_options_s exec_o...
null
null
197,973
67555112620788823184421673030526843273
93
exec: --cap do not set inheritable capabilities Closes: CVE-2022-27650 Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
other
jerryscript
3ad76f932c8d2e3b9ba2d95e64848698ec7d7290
1
vm_loop (vm_frame_ctx_t *frame_ctx_p) /**< frame context */ { const ecma_compiled_code_t *bytecode_header_p = frame_ctx_p->shared_p->bytecode_header_p; const uint8_t *byte_code_p = frame_ctx_p->byte_code_p; ecma_value_t *literal_start_p = frame_ctx_p->literal_start_p; ecma_value_t *stack_top_p; uint16_t enco...
null
null
197,989
117248586394637887953246786581777711038
3,977
Fix for-in collection cleanup on abrupt 'has' result (#4807) This patch fixes #4747 JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik robert.fancsik@h-lab.eu
other
libjxl
1c05e110d69b457696366fb4e762057b6855349b
1
Status ModularFrameDecoder::DecodeGroup(const Rect& rect, BitReader* reader, int minShift, int maxShift, const ModularStreamId& stream, bool zerofill, PassesDec...
null
null
197,992
21178916405896710995060758052833004149
81
fix use_full_image==false case (#365) Some fixes to the case where the full modular image is skipped: - don't assume that everything happens at the modular AC group level (minShift==0), there can also be upsampling causing channels to have nonzero shift even when there's no Squeeze - for partial decodes (when zero...
other
tensorflow
704866eabe03a9aeda044ec91a8d0c83fc1ebdbe
1
void Compute(OpKernelContext* context) override { const Tensor& input = context->input(0); const TensorShape& input_shape = input.shape(); const int32 input_dims = input_shape.dims(); const Tensor& segment_id = context->input(1); const TensorShape& segment_id_shape = segment_id.shape(); const...
null
null
197,998
63466493117126952833887281584130653418
64
Fix overflow CHECK issue with `tf.raw_ops.UnsortedSegmentJoin`. PiperOrigin-RevId: 370766155 Change-Id: I33e7c6626224e1060a8a4ab51ad5d861c6d4c63e
other
open5gs
c0f695525088486c509f37a02ff1fda211b141bb
1
char *ogs_nas_5gs_suci_from_mobile_identity( ogs_nas_5gs_mobile_identity_t *mobile_identity) { ogs_nas_5gs_mobile_identity_suci_t *mobile_identity_suci = NULL; ogs_plmn_id_t plmn_id; char tmp[OGS_MAX_IMSI_BCD_LEN+1]; char routing_indicator[5]; char *suci = NULL; ogs_assert(mobile_identi...
null
null
197,999
22172238106439330702976732210944258616
64
[AMF] fix the crash when long MSIN length (#1206) When the UE is in initially registered period, if the length of MSIN(Part of SUPI) exceeds the normal length, AMF stack smashing will be caused
other
tensorflow
e86605c0a336c088b638da02135ea6f9f6753618
1
void Compute(OpKernelContext* ctx) override { auto x = ctx->input(0); auto i = ctx->input(1); auto v = ctx->input(2); OP_REQUIRES(ctx, TensorShapeUtils::IsVector(i.shape()), errors::InvalidArgument("i must be a vector. ", i.shape().DebugString()...
null
null
198,003
93663684494140260682969182544172664356
31
Fix FPE in inpace update ops. PiperOrigin-RevId: 388303197 Change-Id: Ib48309b6213ffe53eba81004b00e889d653e4b83
other
tensorflow
b5cdbf12ffcaaffecf98f22a6be5a64bb96e4f58
1
void Compute(OpKernelContext* context) override { // boxes: [batch_size, num_anchors, q, 4] const Tensor& boxes = context->input(0); // scores: [batch_size, num_anchors, num_classes] const Tensor& scores = context->input(1); OP_REQUIRES( context, (boxes.dim_size(0) == scores.dim_size(0)), ...
null
null
198,004
154917976059736074963847009813784787458
61
Prevent overflow due to integer conversion to unsigned. PiperOrigin-RevId: 387738045 Change-Id: Id7e95bc07e02df1c66b72bd09f389608c87bdebe
other
radare2
193f4fe01d7f626e2ea937450f2e0c4604420e9d
1
static int string_scan_range(RList *list, RBinFile *bf, int min, const ut64 from, const ut64 to, int type, int raw, RBinSection *section) { RBin *bin = bf->rbin; ut8 tmp[R_STRING_SCAN_BUFFER_SIZE]; ut64 str_start, needle = from; int count = 0, i, rc, runes; int str_type = R_STRING_TYPE_DETECT; // if lis...
null
null
198,010
111222441560032345362598385552469977676
310
Fix integer overflow in string search causing oobread ##crash * Reported by @greatergoodest via huntrdev * BountyID: 8a3dc5cb-08b3-4807-82b2-77f08c137a04 * Reproducer bfileovf
other
tensorflow
3150642acbbe254e3c3c5d2232143fa591855ac9
1
void Compute(OpKernelContext* context) override { // Checks what we're remapping and inverts the relevant remapping Tensors to // be maps with key = old ID, value = new ID. std::unordered_map<int64_t, int64_t> old_row_to_new_row_map; std::vector<bool> row_id_present; const Tensor* row_remapping_t;...
null
null
198,013
149718048967192541664708298570113806879
231
Fix tf.raw_ops.LoadAndRemapMatrix vulnerability with invalid `row_remapping`. Check that `row_remapping` has the correct dims(). PiperOrigin-RevId: 445522800
other
FFmpeg
61d59703c91869f4e5cdacd8d6be52f8b89d4ba4
1
static av_always_inline void add_yblock(SnowContext *s, int sliced, slice_buffer *sb, IDWTELEM *dst, uint8_t *dst8, const uint8_t *obmc, int src_x, int src_y, int b_w, int b_h, int w, int h, int dst_stride, int src_stride, int obmc_stride, int b_x, int b_y, int add, int offset_dst, int plane_index){ const int b_wid...
null
null
198,115
130981242716370455651346005101230835197
121
avcodec/snow: split block clipping checks Fixes out of array read Fixes: d4476f68ca1c1c57afbc45806f581963-asan_heap-oob_2266b27_8607_cov_4044577381_snow_chroma_bug.avi Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
other
tensorflow
87158f43f05f2720a374f3e6d22a7aaa3a33f750
1
void Compute(OpKernelContext *ctx) override { const Tensor *indices_t, *values_t, *shape_t, *reduction_axes_t; OP_REQUIRES_OK(ctx, ctx->input("input_indices", &indices_t)); OP_REQUIRES_OK(ctx, ctx->input("input_values", &values_t)); OP_REQUIRES_OK(ctx, ctx->input("input_shape", &shape_t)); OP_REQU...
null
null
198,116
51050455024866713197969944234997171688
69
Prevent heap OOB in sparse reduction ops. PiperOrigin-RevId: 387934524 Change-Id: I894aa30f1e454f09b471d565b4a325da49322c1a
other
tensorflow
0f931751fb20f565c4e94aa6df58d54a003cdb30
1
void Compute(OpKernelContext* context) override { // Here's the basic idea: // Batch and depth dimension are independent from row and col dimension. And // because FractionalAvgPool currently only support pooling along row and // col, we can basically think of this 4D tensor backpropagation as // ...
null
null
198,117
321331517740946158662148739652819934224
129
Validate dimensions of input tensor in `FractionalAvgPoolGrad` PiperOrigin-RevId: 388286227 Change-Id: Ieb7566155e92acc8993a2212c76deacadc0edc8a
other
ImageMagick
c8718305f120293d8bf13724f12eed885d830b09
1
static Image *ReadTIFFImage(const ImageInfo *image_info, ExceptionInfo *exception) { #define ThrowTIFFException(severity,message) \ { \ if (pixel_info != (MemoryInfo *) NULL) \ pixel_info=RelinquishVirtualMemory(pixel_info); \ if (quantum_info != (QuantumInfo *) NULL) \ quantum_info=DestroyQuantumInfo(qua...
null
null
198,121
175955554095429192429912268769734051186
1,015
https://github.com/ImageMagick/ImageMagick/issues/4974
other
tensorflow
429f009d2b2c09028647dd4bb7b3f6f414bbaad7
1
void Compute(OpKernelContext* const context) override { // node_id_range const Tensor* node_id_range_t; OP_REQUIRES_OK(context, context->input("node_id_range", &node_id_range_t)); const auto node_id_range = node_id_range_t->vec<int32>(); const int32_t node_id_first = node_id_range(0); // inclusiv...
null
null
198,146
27348192869449002529615461959499590790
172
Add remaining missing validation to `BoostedTreesCalculateBestFeatureSplit` PiperOrigin-RevId: 387423006 Change-Id: I8eaf30efb223011519e60707bfa751b275d3a443
other
ImageMagick
a6240a163cb787909703d9fc649cf861f60ddd7c
1
static Image *ReadMATImage(const ImageInfo *image_info,ExceptionInfo *exception) { Image *image, *image2=NULL, *rotated_image; register Quantum *q; unsigned int status; MATHeader MATLAB_HDR; size_t size; size_t CellType; QuantumInfo *quantum_info; ImageInfo *clone_info; int i; ssize_t ldblk; ...
null
null
198,161
201330309137613498322904815795359643333
486
https://github.com/ImageMagick/ImageMagick/issues/131
other
tensorflow
5b048e87e4e55990dae6b547add4dae59f4e1c76
1
TfLiteTensor* GetVariableInput(TfLiteContext* context, const TfLiteNode* node, int index) { TfLiteTensor* tensor = GetMutableInput(context, node, index); return tensor->is_variable ? tensor : nullptr; }
null
null
198,169
213393638605228148425492190927951362914
5
Fix a null pointer exception in SVDF This is due to not checking that `GetVariableInput` returns non-null tensor. Also fix a potential null pointer exception in `GetVariableInput`. PiperOrigin-RevId: 385160147 Change-Id: Iadf3f0705b036a9014d27caa5a8bbd91f4c4c401
other
tensorflow
5b048e87e4e55990dae6b547add4dae59f4e1c76
1
TfLiteStatus Eval(TfLiteContext* context, TfLiteNode* node) { auto* params = reinterpret_cast<TfLiteSVDFParams*>(node->builtin_data); OpData* op_data = reinterpret_cast<OpData*>(node->user_data); const TfLiteTensor* input; TF_LITE_ENSURE_OK(context, GetInputSafe(context, node, kInputTensor, &input)); const T...
null
null
198,170
48006172578674889644863416691565225644
123
Fix a null pointer exception in SVDF This is due to not checking that `GetVariableInput` returns non-null tensor. Also fix a potential null pointer exception in `GetVariableInput`. PiperOrigin-RevId: 385160147 Change-Id: Iadf3f0705b036a9014d27caa5a8bbd91f4c4c401
other
gpac
d7daa8aeb6df4b6c3ec102622e1599279310a19e
1
GF_Err gf_isom_get_sample_for_movie_time(GF_ISOFile *the_file, u32 trackNumber, u64 movieTime, u32 *StreamDescriptionIndex, GF_ISOSearchMode SearchMode, GF_ISOSample **sample, u32 *sampleNumber, u64 *data_offset) { Double tsscale; GF_Err e; GF_TrackBox *trak; u64 mediaTime, nextMediaTime; s64 segStartTime, mediaOf...
null
null
198,178
148501486251921845480245286379253106973
108
fixed #2108
other
tensorflow
01cff3f986259d661103412a20745928c727326f
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
198,198
58263525248995712789827465195477770320
68
Fix heap OOB due to dimension mismatch in `ResourceScatterUpdate` PiperOrigin-RevId: 388292801 Change-Id: Id9bd7244d98d41b1517d4771850b32782c0cc949
other
jerryscript
efe63a5bbc5106164a08ee2eb415a7a701f5311f
1
parser_parse_for_statement_start (parser_context_t *context_p) /**< context */ { parser_loop_statement_t loop; JERRY_ASSERT (context_p->token.type == LEXER_KEYW_FOR); lexer_next_token (context_p); #if JERRY_ESNEXT bool is_for_await = false; if (context_p->token.type == LEXER_KEYW_AWAIT) { if (JERRY_U...
null
null
198,202
146258652977097384493241787237206491033
479
Fix parsing unterminated let statement (#4808) This patch fixes #4754 JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik robert.fancsik@h-lab.eu
other
ok-file-formats
e49cdfb84fb5eca2a6261f3c51a3c793fab9f62e
1
static void ok_png_decode2(ok_png_decoder *decoder) { ok_png *png = decoder->png; uint8_t png_header[8]; if (!ok_read(decoder, png_header, sizeof(png_header))) { return; } uint8_t png_signature[8] = {137, 80, 78, 71, 13, 10, 26, 10}; if (memcmp(png_header, png_signature, 8) != 0) { ...
null
null
198,205
88368051304508135188622151578934062635
84
ok_png: Disallow multiple IHDR chunks (#15)
other
bareos
e8e79984410f5d4f65e199e9e677443c88808a66
1
bool PamAuthenticateUser(BareosSocket* UA_sock, const std::string& username_in, const std::string& password_in, std::string& authenticated_username) { std::unique_ptr<PamData> pam_callback_data(new PamData(UA_sock, password_in)); std::unique...
null
null
198,237
68645282009021159660365589311628648946
65
dir: fix memory-leak on failed PAM authentication Fixes CVE-2022-24756
other
barebox
a3337563c705bc8e0cf32f910b3e9e3c43d962ff
1
static int check_passwd(unsigned char *passwd, size_t length) { struct digest *d = NULL; unsigned char *passwd1_sum; unsigned char *passwd2_sum; int ret = 0; int hash_len; if (IS_ENABLED(CONFIG_PASSWD_CRYPTO_PBKDF2)) { hash_len = PBKDF2_LENGTH; } else { d = digest_alloc(PASSWD_SUM); if (!d) { pr_err("N...
null
null
198,239
294849430085948649941831986415582450811
65
password: Use crypto_memneq() to compare hashes Cryptographic verifications should be time-constant so that an attacker cannot get information about the secrets used by observing the system, so use crypto_memneq() rather than memcmp() to compare password hashes. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
other
tensorflow
a2b743f6017d7b97af1fe49087ae15f0ac634373
1
void Compute(OpKernelContext* context) override { // Get the input Tensors. OpInputList params_nested_splits_in; OP_REQUIRES_OK(context, context->input_list("params_nested_splits", &params_nested_splits_in)); const Tensor& params_dense_values_in = ...
null
null
198,259
320142100828149702516338704383329826014
33
Fix heap OOB in `tf.raw_ops.RaggedGather` PiperOrigin-RevId: 388355464 Change-Id: If14d96231d1cd7aad7c4d1c22c1bab1576b75717
other
tensorflow
4923de56ec94fff7770df259ab7f2288a74feb41
1
void ReshapeSparseTensor(OpKernelContext *context, const Tensor &input_indices_in, const Tensor &input_shape_in, const Tensor &target_shape_in, int output_indices_idx, int output_shape_idx) { OP_REQUIRES(context, Tenso...
null
null
198,282
190782557585607280379165978157912191873
100
Don't do any work when reshaping 0 elements sparse tensor. If reshaping to 0 elements tensor, check that input has no elements. If reshaping no elements input, check that output has no elements. PiperOrigin-RevId: 388296986 Change-Id: Iadc9fe7252e14313ca987e69bf0d7042fd10232a
other
pesign
b879dda52f8122de697d145977c285fb0a022d76
1
void cms_set_pw_data(cms_context *cms, secuPWData *pwdata) { ingress(); switch (cms->pwdata.source) { case PW_SOURCE_INVALID: case PW_PROMPT: case PW_DEVICE: case PW_SOURCE_MAX: break; case PW_FROMFD: if (cms->pwdata.intdata >= 0 && !(pwdata->source == PW_FROMFD && cms->pwdata.intdata == pwda...
null
null
198,317
114679687783740689335214625108343607963
38
Handle NULL pwdata in cms_set_pw_data() When 12f16710ee44ef64ddb044a3523c3c4c4d90039a rewrote this function, it didn't handle the NULL pwdata invocation from daemon.c. This leads to a explicit NULL dereference and crash on all attempts to daemonize pesign. Signed-off-by: Robbie Harwood <rharwood@redhat.com>
other
owntone-server
246d8ae0cef27377e5dfe9ee3ad87e864d6b6266
1
net_bind(short unsigned *port, int type, const char *log_service_name) { struct addrinfo hints = { 0 }; struct addrinfo *servinfo; struct addrinfo *ptr; const char *cfgaddr; char addr[INET6_ADDRSTRLEN]; char strport[8]; int yes = 1; int no = 0; int fd; int ret; cfgaddr = cfg_getstr(cfg_getsec(cfg...
null
null
198,350
242703657813636020025363398917671657558
87
[misc] Fix use-after-free in net_bind() Thanks to Ba Jinsheng for reporting this bug
other
tensorflow
803404044ae7a1efac48ba82d74111fce1ddb09a
1
void Compute(OpKernelContext* ctx) override { const Tensor* x_tensor = nullptr; OP_REQUIRES_OK(ctx, ctx->input("x", &x_tensor)); const Tensor* cs_prev_tensor = nullptr; OP_REQUIRES_OK(ctx, ctx->input("cs_prev", &cs_prev_tensor)); const Tensor* h_prev_tensor = nullptr; OP_REQUIRES_OK(ctx, ctx...
null
null
198,374
260646771289760508359660640080487592990
124
Fix security vulnerability with LSTMBlockCellOp PiperOrigin-RevId: 446028341
other
uftpd
0fb2c031ce0ace07cc19cd2cb2143c4b5a63c9dd
1
static void handle_PORT(ctrl_t *ctrl, char *str) { int a, b, c, d, e, f; char addr[INET_ADDRSTRLEN]; struct sockaddr_in sin; if (ctrl->data_sd > 0) { uev_io_stop(&ctrl->data_watcher); close(ctrl->data_sd); ctrl->data_sd = -1; } /* Convert PORT command's argument to IP address + port */ sscanf(str, "%d,%d...
null
null
198,399
22646162618618523500441009878618953221
29
FTP: Fix buffer overflow in PORT parser, reported by Aaron Esau Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
other
cups
0bc9dc4658c26920a3f66da7dd234be463ca572e
1
ctcompare(const char *a, /* I - First string */ const char *b) /* I - Second string */ { int result = 0; /* Result */ while (*a && *b) { result |= *a ^ *b; a ++; b ++; } return (result); }
null
null
198,433
39715001571456723900086525845394192958
15
CVE-2022-26691: An incorrect comparison in local admin authentication
other
gerbv
319a8af890e4d0a5c38e6d08f510da8eefc42537
1
aperture_report(gerbv_aperture_t *apertures[], int aperture_num, double x, double y, gerbv_image_t *img, gerbv_project_t *prj) { gerbv_aperture_type_t type = apertures[aperture_num]->type; double *params = apertures[aperture_num]->parameter; gerbv_simplified_amacro_t *sim = apertures[aperture_num]->simplified; do...
null
null
198,435
86272392915191272115118972342960989458
183
Remove local alias to parameter array Normalizing access to `gerbv_simplified_amacro_t::parameter` as a step to fix CVE-2021-40402
other
ntfs-3g
60717a846deaaea47e50ce58872869f7bd1103b5
1
s64 ntfs_get_attribute_value(const ntfs_volume *vol, const ATTR_RECORD *a, u8 *b) { runlist *rl; s64 total, r; int i; /* Sanity checks. */ if (!vol || !a || !b) { errno = EINVAL; return 0; } /* Complex attribute? */ /* * Ignore the flags in case they are not zero for an attribute list * attribute. W...
null
null
198,437
207327288367432466091072935525550388492
160
Avoided allocating and reading an attribute beyond its full size Before reading a full attribute value for internal use, its expected length has been checked to be < 0x40000. However the allocated size in the runlist may be much bigger as a consequence of a bug or malice. To prevent malloc'ing excessive size, restrict...
other
mruby
3cf291f72224715942beaf8553e42ba8891ab3c6
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
198,439
242922149333710994821156841146649645539
1,828
vm.c: create break object before clearing GC arena. Otherwise it possibly cause use-after-free.
other
pjproject
450baca94f475345542c6953832650c390889202
1
PJ_DEF(pj_status_t) pjstun_parse_msg( void *buf, pj_size_t buf_len, pjstun_msg *msg) { pj_uint16_t msg_type, msg_len; char *p_attr; PJ_CHECK_STACK(); msg->hdr = (pjstun_msg_hdr*)buf; msg_type = pj_ntohs(msg->hdr->type); switch (msg_type) { case PJSTUN_BINDING_REQUEST: case ...
null
null
198,449
135632213457172939945264979223013834460
65
Merge pull request from GHSA-26j7-ww69-c4qj
other
tensorflow
a989426ee1346693cc015792f11d715f6944f2b8
1
void ComparisonQuantized(const TfLiteTensor* input1, const TfLiteTensor* input2, TfLiteTensor* output, bool requires_broadcast) { if (input1->type == kTfLiteUInt8 || input1->type == kTfLiteInt8) { auto input1_offset = -input1->params.zero_point; auto input2_offset = -input2->params.ze...
null
null
198,452
207684057347604940476422838906061374925
37
Improve to cover scale value greater than one PiperOrigin-RevId: 433050921
other
njs
6a07c2156a07ef307b6dcf3c2ca8571a5f1af7a6
1
njs_await_fulfilled(njs_vm_t *vm, njs_value_t *args, njs_uint_t nargs, njs_index_t unused) { njs_int_t ret; njs_value_t **cur_local, **cur_closures, **cur_temp, *value; njs_frame_t *frame, *async_frame; njs_function_t *function; njs_async_ctx_t *ctx; njs_na...
null
null
198,476
30140299270589977394449369465621934034
86
Fixed recursive async function calls. Previously, PromiseCapability record was stored (function->context) directly in function object during a function invocation. This is not correct, because PromiseCapability record should be linked to current execution context. As a result, function->context is overwritten with c...
other
micro-ecc
1b5f5cea5145c96dd8791b9b2c41424fc74c2172
1
static int uECC_sign_with_k(const uint8_t *private_key, const uint8_t *message_hash, unsigned hash_size, uECC_word_t *k, uint8_t *signature, uECC_Curve curve) { uECC_word_t tm...
null
null
198,499
75558427469827995413294142200508990286
73
Fix for #168
other
mruby
00acae117da1b45b318dc36531a7b0021b8097ae
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
198,512
251133800800873458523255728173671147403
1,828
vm.c: target class may be NULL.
other
tensorflow
5ecec9c6fbdbc6be03295685190a45e7eee726ab
1
void Compute(OpKernelContext* context) override { // Get the stamp token. const Tensor* stamp_token_t; OP_REQUIRES_OK(context, context->input("stamp_token", &stamp_token_t)); int64_t stamp_token = stamp_token_t->scalar<int64>()(); // Get the tree ensemble proto. const Tensor* tree_ensemble_se...
null
null
198,523
201044185104134614142321846533666874996
28
Prevent use after free. A very old version of the code used `result` as a simple pointer to a resource. Two years later, the pointer got changed to a `unique_ptr` but author forgot to remove the call to `Unref`. Three years after that, we finally uncover the UAF. PiperOrigin-RevId: 387924872 Change-Id: I70fb6f199164d...
other
u-boot
8f8c04bf1ebbd2f72f1643e7ad9617dafa6e5409
1
static int do_i2c_md(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) { uint chip; uint addr, length; int alen; int j, nbytes, linebytes; int ret; #if CONFIG_IS_ENABLED(DM_I2C) struct udevice *dev; #endif /* We use the last specified parameters, unless new ones are * entered. */ chip ...
null
null
198,545
316505070418912776648735019136484744565
106
i2c: fix stack buffer overflow vulnerability in i2c md command When running "i2c md 0 0 80000100", the function do_i2c_md parses the length into an unsigned int variable named length. The value is then moved to a signed variable: int nbytes = length; #define DISP_LINE_LEN 16 int linebytes = (nbytes > DISP...
other
engine
7df766124f87768b43b9e8947c5a01e17545772c
1
static int pkey_GOST_ECcp_encrypt(EVP_PKEY_CTX *pctx, unsigned char *out, size_t *out_len, const unsigned char *key, size_t key_len) { GOST_KEY_TRANSPORT *gkt = NULL; EVP_PKEY *pubk = EVP_PKEY_CTX_get0_pkey(pctx); struct gost_pmeth_data *data = EVP_PKEY_...
null
null
198,552
119311370633297214893271826756266062107
111
Fix buffer overrun in creating key transport blob according to RFC 9189, 4.2.4.2 Resolves: CVE-2022-29242
other
Bento4
33331ce2d35d45d855af7441db6116b4a9e2b70f
1
main(int argc, char** argv) { if (argc < 2) { PrintUsageAndExit(); } // default options Options.input = NULL; Options.verbose = false; Options.hls_version = 0; Options.pmt_pid = 0x100; ...
null
null
198,555
309905552433608479525781569947809221165
725
fix #691
other
mruby
da48e7dbb20024c198493b8724adae1b842083aa
1
fiber_switch(mrb_state *mrb, mrb_value self, mrb_int len, const mrb_value *a, mrb_bool resume, mrb_bool vmexec) { struct mrb_context *c = fiber_check(mrb, self); struct mrb_context *old_c = mrb->c; enum mrb_fiber_state status; mrb_value value; fiber_check_cfunc(mrb, c); status = c->status; switch (status...
null
null
198,556
271948785129900052928977498798833276567
63
fiber.c: should pack 15+ arguments in an array.
other
libmobi
eafc415bc6067e72577f70d6dd5acbf057ce6e6f
1
MOBI_RET mobi_decode_infl(unsigned char *decoded, int *decoded_size, const unsigned char *rule) { int pos = *decoded_size; char mod = 'i'; char dir = '<'; char olddir; unsigned char c; while ((c = *rule++)) { if (c <= 4) { mod = (c <= 2) ? 'i' : 'd'; /* insert, delete */ ...
null
null
198,566
211795113703656920067010021209431193626
59
Fix wrong boundary checks in inflections parser resulting in stack buffer over-read with corrupt input
other
libjpeg-turbo
6709e4a0cfa44d4f54ee8ad05753d4aa9260cb91
1
get_text_gray_row (j_compress_ptr cinfo, cjpeg_source_ptr sinfo) /* This version is for reading text-format PGM files with any maxval */ { ppm_source_ptr source = (ppm_source_ptr) sinfo; FILE * infile = source->pub.input_file; register JSAMPROW ptr; register JSAMPLE *rescale = source->rescale; JDIMENSION col;...
null
null
198,576
90454294641612113179390747862471467555
15
Check range of integer values in PPM text file Add checks to ensure values are within the specified range. Fixes mozilla/mozjpeg#141, closes #8
other
vim
0e8e938d497260dd57be67b4966cb27a5f72376f
1
get_lisp_indent(void) { pos_T *pos, realpos, paren; int amount; char_u *that; colnr_T col; colnr_T firsttry; int parencount, quotecount; int vi_lisp; // Set vi_lisp to use the vi-compatible method vi_lisp = (vim_strchr(p_cpo, CPO_LISP) != NULL); realpos = curwin->w_cursor; ...
null
null
198,588
327268708570235606305447273326836046337
181
patch 8.2.5122: lisp indenting my run over the end of the line Problem: Lisp indenting my run over the end of the line. Solution: Check for NUL earlier.
other
vim
dc5490e2cbc8c16022a23b449b48c1bd0083f366
1
ex_copy(linenr_T line1, linenr_T line2, linenr_T n) { linenr_T count; char_u *p; count = line2 - line1 + 1; if ((cmdmod.cmod_flags & CMOD_LOCKMARKS) == 0) { curbuf->b_op_start.lnum = n + 1; curbuf->b_op_end.lnum = n + count; curbuf->b_op_start.col = curbuf->b_op_end.col = 0; } /* *...
null
null
198,662
23515640853533718736246272320506725321
53
patch 8.2.4215: illegal memory access when copying lines in Visual mode Problem: Illegal memory access when copying lines in Visual mode. Solution: Adjust the Visual position after copying lines.
other
ipsec
7bab09631c2a303f87a7eb7e3d69e888673b9b7e
1
int xfrm_migrate(const struct xfrm_selector *sel, u8 dir, u8 type, struct xfrm_migrate *m, int num_migrate, struct xfrm_kmaddress *k, struct net *net, struct xfrm_encap_tmpl *encap) { int i, err, nx_cur = 0, nx_new = 0; struct xfrm_policy *pol = NULL; struct xfrm_state *x, *xc; struct xfrm_state *x_cur[XFR...
null
null
198,692
251209948525286249756852973192467594641
66
xfrm: policy: check policy direction value The 'dir' parameter in xfrm_migrate() is a user-controlled byte which is used as an array index. This can lead to an out-of-bound access, kernel lockup and DoS. Add a check for the 'dir' value. This fixes CVE-2017-11600. References: https://bugzilla.redhat.com/show_bug.cgi?...
other
MilkyTracker
fd607a3439fcdd0992e5efded3c16fc79c804e34
1
mp_sint32 LoaderS3M::load(XMFileBase& f, XModule* module) { module->cleanUp(); // this will make code much easier to read TXMHeader* header = &module->header; TXMInstrument* instr = module->instr; TXMSample* smp = module->smp; TXMPattern* phead = module->phead; // we're already out of memory here if...
null
null
198,695
232151339946137971220513489493449251730
415
Fix #184: Heap overflow in S3M loader
other
LibRaw
4606c28f494a750892c5c1ac7903e62dd1c6fdb5
1
int CLASS ljpeg_start (struct jhead *jh, int info_only) { int c, tag, len; uchar data[0x10000]; const uchar *dp; memset (jh, 0, sizeof *jh); jh->restart = INT_MAX; fread (data, 2, 1, ifp); if (data[1] != 0xd8) return 0; do { fread (data, 2, 2, ifp); tag = data[0] << 8 | data[1]; len = (dat...
null
null
198,703
12868455872231710696102155978892600552
50
0.16.1: fix for dcraw ljpeg_start() vulnerability
other
linux
d563131ef23cbc756026f839a82598c8445bc45f
1
static int rsi_send_beacon(struct rsi_common *common) { struct sk_buff *skb = NULL; u8 dword_align_bytes = 0; skb = dev_alloc_skb(MAX_MGMT_PKT_SIZE); if (!skb) return -ENOMEM; memset(skb->data, 0, MAX_MGMT_PKT_SIZE); dword_align_bytes = ((unsigned long)skb->data & 0x3f); if (dword_align_bytes) skb_pull(sk...
null
null
198,736
175741261833627073099821425757531326769
24
rsi: release skb if rsi_prepare_beacon fails In rsi_send_beacon, if rsi_prepare_beacon fails the allocated skb should be released. Signed-off-by: Navid Emamdoost <navid.emamdoost@gmail.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
other
LuaJIT
53f82e6e2e858a0a62fd1a2ff47e9866693382e6
1
static ptrdiff_t finderrfunc(lua_State *L) { cTValue *frame = L->base-1, *bot = tvref(L->stack); void *cf = L->cframe; while (frame > bot && cf) { while (cframe_nres(cframe_raw(cf)) < 0) { /* cframe without frame? */ if (frame >= restorestack(L, -cframe_nres(cf))) break; if (cframe_errfunc(cf) >...
null
null
198,743
103249297125021918182204154082572508861
50
Fix frame traversal for __gc handler frames. Reported by Changochen.
other
qemu
98a8cc741dad9cb4738f81a994bcf8d77d619152
1
static uint64_t zynq_slcr_compute_pll(uint64_t input, uint32_t ctrl_reg) { uint32_t mult = ((ctrl_reg & R_xxx_PLL_CTRL_PLL_FPDIV_MASK) >> R_xxx_PLL_CTRL_PLL_FPDIV_SHIFT); /* first, check if pll is bypassed */ if (ctrl_reg & R_xxx_PLL_CTRL_PLL_BYPASS_FORCE_MASK) { return input; } ...
null
null
198,798
268699829089390686182525661231401074307
19
hw/misc/zynq_slcr: Avoid #DIV/0! error Malicious user can set the feedback divisor for the PLLs to zero, triggering a floating-point exception (SIGFPE). As the datasheet [*] is not clear how hardware behaves when these bits are zeroes, use the maximum divisor possible (128) to avoid the software FPE. [*] Zynq-7000 T...
other
radare2
0a557045476a2969c7079aec9eeb29d02f2809c6
1
RList *r_bin_ne_get_entrypoints(r_bin_ne_obj_t *bin) { if (!bin->entry_table) { return NULL; } RList *entries = r_list_newf (free); if (!entries) { return NULL; } RList *segments = r_bin_ne_get_segments (bin); if (!segments) { r_list_free (entries); return NULL; } if (bin->ne_header->csEntryPoint) { ...
null
null
198,927
231378592395081525233262099532340458175
76
Fix oobread and unaligned casts in the NE entrypoint logic ##crash * Reported by @hmsec via huntr.dev * Reproducer: nepocaligns * BountyID: ec538fa4-06c6-4050-a141-f60153ddeaac
other
swtpm
9f740868fc36761de27df3935513bdebf8852d19
1
SWTPM_NVRAM_CheckHeader(unsigned char *data, uint32_t length, uint32_t *dataoffset, uint16_t *hdrflags, uint8_t *hdrversion, bool quiet) { blobheader *bh = (blobheader *)data; if (length < sizeof(bh)) { if (!quiet) logprintf(STDERR_FILENO, ...
null
null
198,983
13496292045022689295589483997516441609
36
swtpm: Check header size indicator against expected size (CID 375869) This fix addresses Coverity issue CID 375869. Check the header size indicated in the header of the state against the expected size and return an error code in case the header size indicator is different. There was only one header size so far since ...
other
linux
8423f0b6d513b259fdab9c9bf4aaa6188d054c2d
1
static int snd_pcm_oss_sync(struct snd_pcm_oss_file *pcm_oss_file) { int err = 0; unsigned int saved_f_flags; struct snd_pcm_substream *substream; struct snd_pcm_runtime *runtime; snd_pcm_format_t format; unsigned long width; size_t size; substream = pcm_oss_file->streams[SNDRV_PCM_STREAM_PLAYBACK]; if (subst...
null
null
199,159
77235514643827032938109375026312253290
96
ALSA: pcm: oss: Fix race at SNDCTL_DSP_SYNC There is a small race window at snd_pcm_oss_sync() that is called from OSS PCM SNDCTL_DSP_SYNC ioctl; namely the function calls snd_pcm_oss_make_ready() at first, then takes the params_lock mutex for the rest. When the stream is set up again by another thread between them, ...
other
linux
233087ca063686964a53c829d547c7571e3f67bf
1
static int fd_locked_ioctl(struct block_device *bdev, fmode_t mode, unsigned int cmd, unsigned long param) { int drive = (long)bdev->bd_disk->private_data; int type = ITYPE(drive_state[drive].fd_device); int i; int ret; int size; union inparam { struct floppy_struct g; /* geometry */ struct format_descr...
null
null
199,681
78370347980706037992860663978546029725
181
floppy: disable FDRAWCMD by default Minh Yuan reported a concurrency use-after-free issue in the floppy code between raw_cmd_ioctl and seek_interrupt. [ It turns out this has been around, and that others have reported the KASAN splats over the years, but Minh Yuan had a reproducer for it and so gets primary credi...
other