func_before stringlengths 10 482k | func_after stringlengths 14 484k | cve_id stringlengths 13 28 ⌀ | cwe_id stringclasses 776
values | cve_description stringlengths 30 3.31k ⌀ | commit_link stringlengths 48 164 ⌀ | commit_message stringlengths 1 30.3k ⌀ | file_name stringlengths 4 244 ⌀ | extension stringclasses 20
values | datetime stringdate 1999-11-10 02:42:49 2024-01-29 16:00:57 ⌀ |
|---|---|---|---|---|---|---|---|---|---|
static int ivi_decode_blocks(GetBitContext *gb, IVIBandDesc *band, IVITile *tile,
AVCodecContext *avctx)
{
int mbn, blk, num_blocks, num_coeffs, blk_size, scan_pos, run, val,
pos, is_intra, mc_type = 0, mv_x, mv_y, col_mask;
uint8_t col_flags[8];
int3... | static int ivi_decode_blocks(GetBitContext *gb, IVIBandDesc *band, IVITile *tile,
AVCodecContext *avctx)
{
int mbn, blk, num_blocks, num_coeffs, blk_size, scan_pos, run, val,
pos, is_intra, mc_type = 0, mv_x, mv_y, col_mask;
uint8_t col_flags[8];
int3... | null | null | null | FFmpeg/commit/deabb52ab4c1fdb3dd319f3980b1489a182011f1 | ivi_common: check that scan pattern is set before using it.
Fixes CVE-2012-2791.
CC: libav-stable@libav.org | ./ffmpeg/libavcodec/ivi_common.c | c | 2012-12-13T18:38:20Z |
coolkey_get_public_key_from_certificate(sc_pkcs15_card_t *p15card, sc_cardctl_coolkey_object_t *obj)
{
sc_pkcs15_cert_info_t cert_info;
sc_pkcs15_cert_t *cert_out = NULL;
sc_pkcs15_pubkey_t *key = NULL;
int r;
cert_info.value.value = NULL;
r = coolkey_get_certificate(p15card->card, obj, &cert_info.value);
if (r... | coolkey_get_public_key_from_certificate(sc_pkcs15_card_t *p15card, sc_cardctl_coolkey_object_t *obj)
{
sc_pkcs15_cert_info_t cert_info;
sc_pkcs15_cert_t *cert_out = NULL;
sc_pkcs15_pubkey_t *key = NULL;
int r;
memset(&cert_info, 0, sizeof(cert_info));
r = coolkey_get_certificate(p15card->card, obj, &cert_info.v... | null | null | null | null | coolkey: Initialize potentially uninitialized memory
Thanks oss-fuzz
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=28855 | null | null | null |
int udp_recvmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg,
size_t len, int noblock, int flags, int *addr_len)
{
struct inet_sock *inet = inet_sk(sk);
struct sockaddr_in *sin = (struct sockaddr_in *)msg->msg_name;
struct sk_buff *skb;
unsigned int ulen, copied;
int peeked, off = 0;
int err;
int is... | int udp_recvmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg,
size_t len, int noblock, int flags, int *addr_len)
{
struct inet_sock *inet = inet_sk(sk);
struct sockaddr_in *sin = (struct sockaddr_in *)msg->msg_name;
struct sk_buff *skb;
unsigned int ulen, copied;
int peeked, off = 0;
int err;
int is... | CVE-2013-7263 | CWE-20 | The Linux kernel before 3.12.4 updates certain length values before ensuring that associated data structures have been initialized, which allows local users to obtain sensitive information from kernel stack memory via a (1) recvfrom, (2) recvmmsg, or (3) recvmsg system call, related to net/ipv4/ping.c, net/ipv4/raw.c, ... | https://git.kernel.org/cgit/linux/kernel/git/davem/net.git/commit/?id=85fbaa75037d0b6b786ff18658ddf0b4014ce2a4 | inet: fix addr_len/msg->msg_namelen assignment in recv_error and rxpmtu functions
Commit bceaa90240b6019ed73b49965eac7d167610be69 ("inet: prevent leakage
of uninitialized memory to user in recv syscalls") conditionally updated
addr_len if the msg_name is written to. The recv_error and rxpmtu
functions relied on the re... | null | null | null |
event.reply = (...args: any[]) => {
event.sender.sendToFrame(event.frameId, ...args);
}; | event.reply = (...args: any[]) => {
event.sender.sendToFrame([processId, frameId], ...args);
}; | CVE-2020-26272 | CWE-668 | The Electron framework lets users write cross-platform desktop applications using JavaScript, HTML and CSS. In versions of Electron IPC prior to 9.4.0, 10.2.0, 11.1.0, and 12.0.0-beta.9, messages sent from the main process to a subframe in the renderer process, through webContents.sendToFrame, event.reply or when using... | https://github.com/electron/electron/commit/07a1c2a3e5845901f7e2eda9506695be58edc73c | fix: restrict sendToFrame to same-process frames by default (#26875) | event_emitter.cc | cc | 2021-01-28T19:15:00Z |
webSocketsHasDataInBuffer(rfbClientPtr cl)
{
ws_ctx_t *wsctx = (ws_ctx_t *)cl->wsctx;
if (wsctx && wsctx->readbuflen)
return TRUE;
return (cl->sslctx && rfbssl_pending(cl) > 0);
} | webSocketsHasDataInBuffer(rfbClientPtr cl)
{
ws_ctx_t *wsctx = (ws_ctx_t *)cl->wsctx;
if (wsctx && wsctx->readlen)
return TRUE;
return (cl->sslctx && rfbssl_pending(cl) > 0);
} | null | CWE-787 | null | https://github.com/LibVNC/libvncserver/commit/aac95a9dcf4bbba87b76c72706c3221a842ca433 | fix overflow and refactor websockets decode (Hybi)
fix critical heap-based buffer overflow which allowed easy modification
of a return address via an overwritten function pointer
fix bug causing connections to fail due a "one websocket frame = one
ws_read" assumption, which failed with LibVNCServer-0.9.11
refactor w... | null | null | 2017-02-15T11:31:05Z |
int ssl3_mac(SSL *ssl, unsigned char *md, int send)
{
SSL3_RECORD *rec;
unsigned char *mac_sec,*seq;
EVP_MD_CTX md_ctx;
const EVP_MD *hash;
unsigned char *p,rec_char;
size_t md_size;
int npad;
if (send)
{
rec= &(ssl->s3->wrec);
mac_sec= &(ssl->s3->write_mac_secret[0]);
seq= &(ssl->s3->write_sequence[0... | int ssl3_mac(SSL *ssl, unsigned char *md, int send)
{
SSL3_RECORD *rec;
unsigned char *mac_sec,*seq;
EVP_MD_CTX md_ctx;
const EVP_MD *hash;
unsigned char *p,rec_char;
size_t md_size;
int npad;
if (send)
{
rec= &(ssl->s3->wrec);
mac_sec= &(ssl->s3->write_mac_secret[0]);
seq= &(ssl->s3->write_sequence[0... | CVE-2013-0169 | CWE-310 | The TLS protocol 1.1 and 1.2 and the DTLS protocol 1.0 and 1.2, as used in OpenSSL, OpenJDK, PolarSSL, and other products, do not properly consider timing side-channel attacks on a MAC check requirement during the processing of malformed CBC padding, which allows remote attackers to conduct distinguishing attacks and p... | http://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=2928cb4c82d6516d9e65ede4901a5957d8c39c32 | Fixups. | null | null | null |
TfLiteStatus Eval(TfLiteContext* context, TfLiteNode* node) {
const TfLiteTensor* input = GetInput(context, node, kInputTensor);
TfLiteTensor* output = GetOutput(context, node, kOutputTensor);
const TfLiteTensor* multipliers = GetInput(context, node, kInputMultipliers);
if (IsDynamicTensor(output)) {
TF_LI... | TfLiteStatus Eval(TfLiteContext* context, TfLiteNode* node) {
const TfLiteTensor* input;
TF_LITE_ENSURE_OK(context, GetInputSafe(context, node, kInputTensor, &input));
TfLiteTensor* output;
TF_LITE_ENSURE_OK(context,
GetOutputSafe(context, node, kOutputTensor, &output));
const TfLiteTensor... | CVE-2020-15211 | CWE-125,CWE-787 | In TensorFlow Lite before versions 1.15.4, 2.0.3, 2.1.2, 2.2.1 and 2.3.1, saved models in the flatbuffer format use a double indexing scheme: a model has a set of subgraphs, each subgraph has a set of operators and each operator has a set of input/output tensors. The flatbuffer format uses indices for the tensors, inde... | https://github.com/tensorflow/tensorflow/commit/1970c2158b1ffa416d159d03c3370b9a462aee35 | [tflite]: Insert `nullptr` checks when obtaining tensors.
As part of ongoing refactoring, `tflite::GetInput`, `tflite::GetOutput`, `tflite::GetTemporary` and `tflite::GetIntermediates` will return `nullptr` in some cases. Hence, we insert the `nullptr` checks on all usages.
We also insert `nullptr` checks on usages o... | add_n.cc | cc | 2020-09-25T19:15:00Z |
static int process_input_packet(InputStream *ist, const AVPacket *pkt, int no_eof)
{
int ret = 0, i;
int got_output = 0;
AVPacket avpkt;
if (!ist->saw_first_ts) {
ist->dts = ist->st->avg_frame_rate.num ? - ist->dec_ctx->has_b_frames * AV_TIME_BASE / av_q2d(ist->st->avg_frame_rate) : 0;
i... | static int process_input_packet(InputStream *ist, const AVPacket *pkt, int no_eof)
{
int ret = 0, i;
int repeating = 0;
int eof_reached = 0;
AVPacket avpkt;
if (!ist->saw_first_ts) {
ist->dts = ist->st->avg_frame_rate.num ? - ist->dec_ctx->has_b_frames * AV_TIME_BASE / av_q2d(ist->st->avg_fr... | null | null | null | FFmpeg/commit/8f6f2322285fc14f8f16377db50355864019a757 | ffmpeg: use new decode API
This is a bit messy, mainly due to timestamp handling.
decode_video() relied on the fact that it could set dts on a flush/drain
packet. This is not possible with the old API, and won't be. (I think
doing this was very questionable with the old API. Flush packets should
not contain any infor... | ./ffmpeg/ffmpeg.c | c | 2016-10-01T15:22:15Z |
static Image *ReadYCBCRImage(const ImageInfo *image_info,
ExceptionInfo *exception)
{
const unsigned char
*pixels;
Image
*canvas_image,
*image;
MagickBooleanType
status;
MagickOffsetType
scene;
QuantumInfo
*quantum_info;
QuantumType
quantum_type;
register const Quantum
... | static Image *ReadYCBCRImage(const ImageInfo *image_info,
ExceptionInfo *exception)
{
const unsigned char
*pixels;
Image
*canvas_image,
*image;
MagickBooleanType
status;
MagickOffsetType
scene;
QuantumInfo
*quantum_info;
QuantumType
quantum_type;
register const Quantum
... | CVE-2017-15032 | CWE-772 | ImageMagick version 7.0.7-2 contains a memory leak in ReadYCBCRImage in coders/ycbcr.c. | https://github.com/ImageMagick/ImageMagick/commit/241988ca28139ad970c1d9717c419f41e360ddb0 | fix memory leak in ReadYCBCRImage as SetImageExtent failure | ycbcr.c | c | 2017-09-13T13:49:52Z |
bqarr_in(PG_FUNCTION_ARGS)
{
char *buf = (char *) PG_GETARG_POINTER(0);
WORKSTATE state;
int32 i;
QUERYTYPE *query;
int32 commonlen;
ITEM *ptr;
NODE *tmp;
int32 pos = 0;
#ifdef BS_DEBUG
StringInfoData pbuf;
#endif
state.buf = buf;
state.state = WAITOPERAND;
state.count = 0;
state.num = 0;
s... | bqarr_in(PG_FUNCTION_ARGS)
{
char *buf = (char *) PG_GETARG_POINTER(0);
WORKSTATE state;
int32 i;
QUERYTYPE *query;
int32 commonlen;
ITEM *ptr;
NODE *tmp;
int32 pos = 0;
#ifdef BS_DEBUG
StringInfoData pbuf;
#endif
state.buf = buf;
state.state = WAITOPERAND;
state.count = 0;
state.num = 0;
s... | CVE-2014-2669 | CWE-189 | Multiple integer overflows in contrib/hstore/hstore_io.c in PostgreSQL 9.0.x before 9.0.16, 9.1.x before 9.1.12, 9.2.x before 9.2.7, and 9.3.x before 9.3.3 allow remote authenticated users to have unspecified impact via vectors related to the (1) hstore_recv, (2) hstore_from_arrays, and (3) hstore_from_array functions ... | https://github.com/postgres/postgres/commit/31400a673325147e1205326008e32135a78b4d8a | Predict integer overflow to avoid buffer overruns.
Several functions, mostly type input functions, calculated an allocation
size such that the calculation wrapped to a small positive value when
arguments implied a sufficiently-large requirement. Writes past the end
of the inadvertent small allocation followed shortly... | contrib/intarray/_int_bool.c | c | 2014-02-17T14:33:31Z |
void
wb_print(netdissect_options *ndo,
register const void *hdr, register u_int len)
{
register const struct pkt_hdr *ph;
ph = (const struct pkt_hdr *)hdr;
if (len < sizeof(*ph) || !ND_TTEST(*ph)) {
ND_PRINT((ndo, "%s", tstr));
return;
}
len -= sizeof(*ph);
if (ph->ph_flags)
ND_PRINT((ndo, "*"));... | void
wb_print(netdissect_options *ndo,
register const void *hdr, register u_int len)
{
register const struct pkt_hdr *ph;
ph = (const struct pkt_hdr *)hdr;
if (len < sizeof(*ph) || !ND_TTEST(*ph)) {
ND_PRINT((ndo, "%s", tstr));
return;
}
len -= sizeof(*ph);
if (ph->ph_flags)
ND_PRINT((ndo, "*"));... | null | null | null | https://github.com/the-tcpdump-group/tcpdump/commit/cc356512f512e7fa423b3674db4bb31dbe40ffec | CVE-2017-13014/White Board: Do more bounds checks.
This fixes a buffer over-read discovered by Yannick Formaggio.
Add a test using the capture file supplied by the reporter(s).
While we're at it, print a truncation error if the packets are
truncated, rather than just, in effect, ignoring the result of the
routines t... | print-wb.c | c | 2017-03-16T18:25:40Z |
static int fic_decode_frame(AVCodecContext *avctx, void *data,
int *got_frame, AVPacket *avpkt)
{
FICContext *ctx = avctx->priv_data;
uint8_t *src = avpkt->data;
int ret;
int slice, nslices;
int msize;
int tsize;
int cur_x, cur_y;
int skip_cursor = ctx->skip_c... | static int fic_decode_frame(AVCodecContext *avctx, void *data,
int *got_frame, AVPacket *avpkt)
{
FICContext *ctx = avctx->priv_data;
uint8_t *src = avpkt->data;
int ret;
int slice, nslices;
int msize;
int tsize;
int cur_x, cur_y;
int skip_cursor = ctx->skip_c... | null | null | null | FFmpeg/commit/73f863d751df84db7a0ca1bd83cdff1b95dc94dd | fic: set pict_type/key_frame after (instead of during) slice decoding.
This fixes a race condition that was already documented in the source
code, and is also reported by tsan in fate-fic-avi. | ./ffmpeg/libavcodec/fic.c | c | 2017-03-28T23:52:07Z |
refresh_account (GoaProvider *provider,
GoaClient *client,
GoaObject *object,
GtkWindow *parent,
GError **error)
{
AddAccountData data;
GVariantBuilder builder;
GoaAccount *account;
GoaEwsClient *ews_client;
GoaExchan... | refresh_account (GoaProvider *provider,
GoaClient *client,
GoaObject *object,
GtkWindow *parent,
GError **error)
{
AddAccountData data;
GVariantBuilder builder;
GoaAccount *account;
GoaEwsClient *ews_client;
GoaExchan... | CVE-2013-0240 | CWE-310 | Gnome Online Accounts (GOA) 3.4.x, 3.6.x before 3.6.3, and 3.7.x before 3.7.5, does not properly validate SSL certificates when creating accounts such as Windows Live and Facebook accounts, which allows man-in-the-middle attackers to obtain sensitive information such as credentials by sniffing the network. | https://git.gnome.org/browse/gnome-online-accounts/commit/?h=gnome-3-6&id=ecad8142e9ac519b9fc74b96dcb5531052bbffe1 | Guard against invalid SSL certificates
None of the branded providers (eg., Google, Facebook and Windows Live)
should ever have an invalid certificate. So set "ssl-strict" on the
SoupSession object being used by GoaWebView.
Providers like ownCloud and Exchange might have to deal with
certificates that are not up to th... | null | null | 2013-01-31T16:45:20Z |
static bool parse_chained_fixups(struct MACH0_(obj_t) *bin, ut32 offset, ut32 size) {
struct dyld_chained_fixups_header header;
if (size < sizeof (header)) {
return false;
}
if (r_buf_fread_at (bin->b, offset, (ut8 *)&header, "7i", 1) != sizeof (header)) {
return false;
}
if (header.fixups_version > 0) {
ep... | static bool parse_chained_fixups(struct MACH0_(obj_t) *bin, ut32 offset, ut32 size) {
struct dyld_chained_fixups_header header;
if (size < sizeof (header)) {
return false;
}
if (r_buf_fread_at (bin->b, offset, (ut8 *)&header, "7i", 1) != sizeof (header)) {
return false;
}
if (header.fixups_version > 0) {
ep... | CVE-2022-1052 | CWE-787,CWE-122 | Heap Buffer Overflow in iterate_chained_fixups in GitHub repository radareorg/radare2 prior to 5.6.6. | https://github.com/radareorg/radare2/commit/0052500c1ed5bf8263b26b9fd7773dbdc6f170c4 | Fix heap OOB read in macho.iterate_chained_fixups ##crash
* Reported by peacock-doris via huntr.dev
* Reproducer 'tests_65305'
mrmacete:
* Return early if segs_count is 0
* Initialize segs_count also for reconstructed fixups
Co-authored-by: pancake <pancake@nopcode.org>
Co-authored-by: Francesco Tamagni <mrmacete@pr... | cmd_api.c | c | 2022-03-22T15:56:27Z |
def read_body
raise Mechanize::ResponseCodeError.new(self) unless
File.exist? @file_path
if directory?
yield dir_body
else
open @file_path, 'rb' do |io|
yield io.read
end
end
end | def read_body
raise Mechanize::ResponseCodeError.new(self) unless
File.exist? @file_path
if directory?
yield dir_body
else
::File.open(@file_path, 'rb') do |io|
yield io.read
end
end
end | null | cwe-078 | null | github.com/sparklemotion/mechanize/commit/63f8779e49664d5e95fae8d42d04c8e373162b3c | fix(security): prevent command injection in FileResponse#read_body
Also add general test coverage for FileResponse#read_body
Related to https://github.com/sparklemotion/mechanize/security/advisories/GHSA-qrqm-fpv6-6r8g | file_response.rb | rb | 2021-01-30T17:22:01Z |
static unsigned int ipv6_defrag(void *priv,
struct sk_buff *skb,
const struct nf_hook_state *state)
{
int err;
#if IS_ENABLED(CONFIG_NF_CONNTRACK)
/* Previously seen (loopback)? */
if (skb->nfct && !nf_ct_is_template((struct nf_conn *)skb->nfct))
return NF_ACCEPT;
#endif
err = nf_ct_frag6_gather(state->... | static unsigned int ipv6_defrag(void *priv,
struct sk_buff *skb,
const struct nf_hook_state *state)
{
int err;
#if IS_ENABLED(CONFIG_NF_CONNTRACK)
/* Previously seen (loopback)? */
if (skb->nfct && !nf_ct_is_template((struct nf_conn *)skb->nfct))
return NF_ACCEPT;
#endif
err = nf_ct_frag6_gather(state->... | CVE-2016-9755 | CWE-787 | The netfilter subsystem in the Linux kernel before 4.9 mishandles IPv6 reassembly, which allows local users to cause a denial of service (integer overflow, out-of-bounds write, and GPF) or possibly have unspecified other impact via a crafted application that makes socket, connect, and writev system calls, related to ne... | https://github.com/torvalds/linux/commit/9b57da0630c9fd36ed7a20fc0f98dc82cc0777fa | netfilter: ipv6: nf_defrag: drop mangled skb on ream error
Dmitry Vyukov reported GPF in network stack that Andrey traced down to
negative nh offset in nf_ct_frag6_queue().
Problem is that all network headers before fragment header are pulled.
Normal ipv6 reassembly will drop the skb when errors occur further down
th... | nf_conntrack_reasm.c | c | 2016-11-29T01:17:34Z |
ast_for_suite(struct compiling *c, const node *n)
{
/* suite: simple_stmt | NEWLINE INDENT stmt+ DEDENT */
asdl_seq *seq;
stmt_ty s;
int i, total, num, end, pos = 0;
node *ch;
REQ(n, suite);
total = num_stmts(n);
seq = _Py_asdl_seq_new(total, c->c_arena);
if (!seq)
return N... | ast_for_suite(struct compiling *c, const node *n)
{
/* suite: simple_stmt | NEWLINE [TYPE_COMMENT NEWLINE] INDENT stmt+ DEDENT */
asdl_seq *seq;
stmt_ty s;
int i, total, num, end, pos = 0;
node *ch;
if (TYPE(n) != func_body_suite) {
REQ(n, suite);
}
total = num_stmts(n);
se... | CVE-2019-19274 | CWE-125 | typed_ast 1.3.0 and 1.3.1 has a handle_keywordonly_args out-of-bounds read. An attacker with the ability to cause a Python interpreter to parse Python source (but not necessarily execute it) may be able to crash the interpreter process. This could be a concern, for example, in a web-based service that parses (but does ... | https://github.com/python/cpython/commit/dcfcd146f8e6fc5c2fc16a4c192a0c5f5ca8c53c | bpo-35766: Merge typed_ast back into CPython (GH-11645) | parser.c | c | 2019-11-26T15:15:00Z |
doProlog(XML_Parser parser, const ENCODING *enc, const char *s, const char *end,
int tok, const char *next, const char **nextPtr, XML_Bool haveMore) {
#ifdef XML_DTD
static const XML_Char externalSubsetName[] = {ASCII_HASH, '\0'};
#endif /* XML_DTD */
static const XML_Char atypeCDATA[]
= {ASCII_C, AS... | doProlog(XML_Parser parser, const ENCODING *enc, const char *s, const char *end,
int tok, const char *next, const char **nextPtr, XML_Bool haveMore,
XML_Bool allowClosingDoctype) {
#ifdef XML_DTD
static const XML_Char externalSubsetName[] = {ASCII_HASH, '\0'};
#endif /* XML_DTD */
static const XML... | null | CWE-611, CWE-776, CWE-415, CWE-125 | null | https://github.com/libexpat/libexpat/commit/c20b758c332d9a13afbbb276d30db1d183a85d43 | xmlparse.c: Deny internal entities closing the doctype | null | null | 2019-08-27T22:24:59Z |
append_to_file (char const *from, char const *to)
{
int tofd;
if ((tofd = safe_open (to, O_WRONLY | O_BINARY | O_APPEND, 0)) < 0)
pfatal ("Can't reopen file %s", quotearg (to));
copy_to_fd (from, tofd);
if (close (tofd) != 0)
write_fatal ();
} | append_to_file (char const *from, char const *to)
{
int to_flags = O_WRONLY | O_APPEND | O_BINARY;
int tofd;
if (! follow_symlinks)
to_flags |= O_NOFOLLOW;
if ((tofd = safe_open (to, to_flags, 0)) < 0)
pfatal ("Can't reopen file %s", quotearg (to));
copy_to_fd (from, tofd);
if (close (tofd) != 0)
... | CVE-2019-13636 | CWE-59 | In GNU patch through 2.7.6, the following of symlinks is mishandled in certain cases other than input files. This affects inp.c and util.c. | https://git.savannah.gnu.org/cgit/patch.git/commit/?id=dce4683cbbe107a95f1f0d45fabc304acfb5d71a | Don't follow symlinks unless --follow-symlinks is given
* src/inp.c (plan_a, plan_b), src/util.c (copy_to_fd, copy_file,
append_to_file): Unless the --follow-symlinks option is given, open files with
the O_NOFOLLOW flag to avoid following symlinks. So far, we were only doing
that consistently for input files.
* src/u... | null | null | null |
static void hmp_migrate_status_cb(void *opaque)
{
MigrationStatus *status = opaque;
MigrationInfo *info;
info = qmp_query_migrate(NULL);
if (!info->has_status || strcmp(info->status, "active") == 0) {
if (info->has_disk) {
int progress;
if (info->disk->remaining) {
... | static void hmp_migrate_status_cb(void *opaque)
{
MigrationStatus *status = opaque;
MigrationInfo *info;
info = qmp_query_migrate(NULL);
if (!info->has_status || strcmp(info->status, "active") == 0 ||
strcmp(info->status, "setup") == 0) {
if (info->has_disk) {
int progress;
... | null | null | null | qemu/commit/dde3a2184074f5c4279fd7fbfc597b5dc5859fb8 | hmp: migrate command (without -d) now blocks correctly
This patch fixes a timing issue that migrate command (without -d) does not
block in some cases.
The original version of hmp.c:hmp_migrate_status_cb checks if the
migration status is 'active' or not to detect the completion of a migration.
However, if this functi... | ./qemu/hmp.c | c | 2014-01-27T10:46:11Z |
public void addPurl(String purl) {
this.purls.add(purl);
} | public void addPurl(String purl) {
var newPurls = getPurls();
newPurls.add(purl);
setPurls(newPurls);
} | null | null | null | https://github.com/fasten-project/fasten/commit/2b6b0cceb18d56dbfe2348010df5b5de4a56aa37 | Regenerated JOOQ classes with 3.14.4 to match metadata plugin. | core/src/main/java/eu/fasten/core/data/vulnerability/Vulnerability.java | java | 2021-10-17T11:38:02Z |
static int mimic_decode_update_thread_context(AVCodecContext *avctx, const AVCodecContext *avctx_from)
{
MimicContext *dst = avctx->priv_data, *src = avctx_from->priv_data;
int i, ret;
if (avctx == avctx_from)
return 0;
dst->cur_index = src->next_cur_index;
dst->prev_index = src->next_prev_... | static int mimic_decode_update_thread_context(AVCodecContext *avctx, const AVCodecContext *avctx_from)
{
MimicContext *dst = avctx->priv_data, *src = avctx_from->priv_data;
int i, ret;
if (avctx == avctx_from)
return 0;
dst->cur_index = src->next_cur_index;
dst->prev_index = src->next_prev_... | null | null | null | FFmpeg/commit/500220a8e84acb952e8a62d88505c5fb6a51843a | mimic: Fix race condition
Fixes access after free.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> | ./ffmpeg/libavcodec/mimic.c | c | 2013-05-09T23:18:12Z |
protected function getFullPath($path, $base) {
$separator = $this->separator;
$systemroot = $this->systemRoot;
$sepquoted = preg_quote($separator, '#');
// normalize `/../`
$normreg = '#('.$sepquoted.')[^'.$sepquoted.']+'.$sepquoted.'\.\.'.$sepquoted.'#';
while(preg_match($normreg, $path)) {
$path = pr... | protected function getFullPath($path, $base) {
$separator = $this->separator;
$systemroot = $this->systemRoot;
if ($base[0] === $separator && strpos($base, 0, strlen($systemroot)) !== $systemroot) {
$base = $systemroot . substr($base, 1);
}
// 'Here'
if ($path === '' || $path === '.' . $separator) re... | CVE-2016-10096 | CWE-89 | SQL injection vulnerability in register.php in GeniXCMS before 1.0.0 allows remote attackers to execute arbitrary SQL commands via the activation parameter. | https://github.com/semplon/GeniXCMS/commit/d885eb20006099262c0278932b9f8aca3c1ac97f | Major Update for Version 1.0.0 release | viewbutton.js | js | 2017-01-01T19:59:00Z |
SProcRecordCreateContext(ClientPtr client)
{
REQUEST(xRecordCreateContextReq);
int status;
swaps(&stuff->length);
REQUEST_AT_LEAST_SIZE(xRecordCreateContextReq);
if ((status = SwapCreateRegister((void *) stuff)) != Success)
return status;
return ProcRecordCreateContext(client);
} ... | SProcRecordCreateContext(ClientPtr client)
{
REQUEST(xRecordCreateContextReq);
int status;
swaps(&stuff->length);
REQUEST_AT_LEAST_SIZE(xRecordCreateContextReq);
if ((status = SwapCreateRegister(client, (void *) stuff)) != Success)
return status;
return ProcRecordCreateContext(client);
... | CVE-2020-14362 | CWE-191 | A flaw was found in X.Org Server before xorg-x11-server 1.20.9. An Integer underflow leading to heap-buffer overflow may lead to a privilege escalation vulnerability. The highest threat from this vulnerability is to data confidentiality and integrity as well as system availability. | https://gitlab.freedesktop.org/xorg/xserver/-/commit/2902b78535ecc6821cc027351818b28a5c7fdbdc | Fix XRecordRegisterClients() Integer underflow
CVE-2020-14362 ZDI-CAN-11574
This vulnerability was discovered by:
Jan-Niklas Sohn working with Trend Micro Zero Day Initiative
Signed-off-by: Matthieu Herrb <matthieu@herrb.eu> | null | null | 2020-08-18T12:55:01Z |
public View getRow(@NonNull String key) {
View sv = getView();
LinearLayout ll = (LinearLayout) sv.findViewById(R.id.form_container_layout);
if (ll != null) {
int pos = 0;
while (ll.getChildAt(pos) instanceof EditableLayout && pos < ll.getChildCount()) {
E... | @Nullable
public View getRow(@NonNull String key) {
View sv = getView();
LinearLayout ll = (LinearLayout) sv.findViewById(R.id.form_container_layout);
if (ll != null) {
int pos = 0;
while (ll.getChildAt(pos) instanceof EditableLayout && pos < ll.getChildCount()) {
... | null | null | null | https://github.com/MarcusWolschon/osmeditor4android/commit/743b1a3f910fe4ac6e33f08b8afe5d2331139082 | Merge branch 'cleanup' | src/main/java/de/blau/android/propertyeditor/tagform/TagFormFragment.java | java | 2022-03-27T17:04:53Z |
char **XListExtensions(
register Display *dpy,
int *nextensions) /* RETURN */
{
xListExtensionsReply rep;
char **list = NULL;
char *ch = NULL;
char *chend;
int count = 0;
register unsigned i;
register int length;
_X_UNUSED register xReq *req;
unsigned long rlen = 0;
LockDisplay(dpy);
GetEmptyReq (Li... | char **XListExtensions(
register Display *dpy,
int *nextensions) /* RETURN */
{
xListExtensionsReply rep;
char **list = NULL;
char *ch = NULL;
char *chend;
int count = 0;
register unsigned i;
register int length;
_X_UNUSED register xReq *req;
unsigned long rlen = 0;
LockDisplay(dpy);
GetEmptyReq (Li... | CVE-2018-14600 | CWE-787 | An issue was discovered in libX11 through 1.6.5. The function XListExtensions in ListExt.c interprets a variable as signed instead of unsigned, resulting in an out-of-bounds write (of up to 128 bytes), leading to DoS or remote code execution. | https://cgit.freedesktop.org/xorg/lib/libX11/commit/?id=dbf72805fd9d7b1846fe9a11b46f3994bfc27fea | Fixed out of boundary write (CVE-2018-14600).
The length value is interpreted as signed char on many systems
(depending on default signedness of char), which can lead to an out of
boundary write up to 128 bytes in front of the allocated storage, but
limited to NUL byte(s).
Casting the length value to unsigned char fi... | ListExt.c | c | null |
wl_map_insert_at(struct wl_map *map, uint32_t flags, uint32_t i, void *data)
{
union map_entry *start;
uint32_t count;
struct wl_array *entries;
if (i < WL_SERVER_ID_START) {
entries = &map->client_entries;
} else {
entries = &map->server_entries;
i -= WL_SERVER_ID_START;
}
count = entries->size / sizeof... | wl_map_insert_at(struct wl_map *map, uint32_t flags, uint32_t i, void *data)
{
union map_entry *start;
uint32_t count;
struct wl_array *entries;
if (i < WL_SERVER_ID_START) {
entries = &map->client_entries;
} else {
entries = &map->server_entries;
i -= WL_SERVER_ID_START;
}
if (i > WL_MAP_MAX_OBJECTS)
... | CVE-2021-3782 | null | An internal reference count is held on the buffer pool, incremented every time a new buffer is created from the pool. The reference count is maintained as an int; on LP64 systems this can cause the reference count to overflow if the client creates a large number of wl_shm buffer objects, or if it can coerce the server ... | https://gitlab.freedesktop.org/wayland/wayland/-/commit/b19488c7154b902354cb26a27f11415d7799b0b2 | util: Limit size of wl_map
Since server IDs are basically indistinguishable from really big client
IDs at many points in the source, it's theoretically possible to overflow
a map and either overflow server IDs into the client ID space, or grow
client IDs into the server ID space. This would currently take a massive
am... | null | null | 2022-01-28T19:18:37Z |
void HttpResponseHeaders::AddHeader(const std::string& header) {
DCHECK_EQ('\0', raw_headers_[raw_headers_.size() - 2]);
DCHECK_EQ('\0', raw_headers_[raw_headers_.size() - 1]);
std::string new_raw_headers(raw_headers_, 0, raw_headers_.size() - 1);
new_raw_headers.append(header);
new_raw_headers.push_back('\... | void HttpResponseHeaders::AddHeader(const std::string& header) {
CheckDoesNotHaveEmbededNulls(header);
DCHECK_EQ('\0', raw_headers_[raw_headers_.size() - 2]);
DCHECK_EQ('\0', raw_headers_[raw_headers_.size() - 1]);
std::string new_raw_headers(raw_headers_, 0, raw_headers_.size() - 1);
new_raw_headers.append... | null | null | null | https://github.com/chromium/chromium/commit/2bcaf4649c1d495072967ea454e8c16dce044705 | Don't interpret embeded NULLs in a response header line as a line terminator.
BUG=95992
Review URL: http://codereview.chromium.org/7796025
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@100863 0039d316-1c4b-4281-b951-d872f2087c98 | net/http/http_response_headers.cc | cc | 2011-09-13T04:55:18Z |
private boolean outlinesOK ()
{
if (!_module.getActionsExist ()) {
return true;
}
PdfDictionary outlineDict = _module.getOutlineDict ();
if (outlineDict == null) {
return true;
}
try {
PdfDictionary item = (PdfDictionary) _module.r... | private boolean outlinesOK ()
{
_visitedOutlineNodes = new HashSet<Integer>();
if (!_module.getActionsExist ()) {
return true;
}
PdfDictionary outlineDict = _module.getOutlineDict ();
if (outlineDict == null) {
return true;
}
try {
... | null | null | null | https://github.com/openpreserve/jhove/commit/917b138831badcfa586eaa9a4af194bef3a9714a | Safely exit infinite loops on AProfile.outlinesOk and checkItemOutline
Other parts of the code have recursion detection, but here incorrect or mishandled escape characters can cause infinite loops. This safely exits the loop on either AProfile.outlinesOK() or AProfile.checkItemOutline() and logs a message, similar to ... | jhove-modules/pdf-hul/src/main/java/edu/harvard/hul/ois/jhove/module/pdf/AProfile.java | java | 2022-01-26T20:17:47Z |
static void eb_mul_lnaf_imp(eb_t r, const eb_t p, const bn_t k) {
int i, l, n;
int8_t naf[RLC_FB_BITS + 1];
eb_t t[1 << (EB_WIDTH - 2)];
RLC_TRY {
/* Prepare the precomputation table. */
for (i = 0; i < (1 << (EB_WIDTH - 2)); i++) {
eb_null(t[i]);
eb_new(t[i]);
eb_set_infty(t[i]);
fb_set_dig(t[i]->... | static void eb_mul_lnaf_imp(eb_t r, const eb_t p, const bn_t k) {
int i, n;
int8_t naf[RLC_FB_BITS + 1];
eb_t t[1 << (EB_WIDTH - 2)];
size_t l;
RLC_TRY {
/* Prepare the precomputation table. */
for (i = 0; i < (1 << (EB_WIDTH - 2)); i++) {
eb_null(t[i]);
eb_new(t[i]);
eb_set_infty(t[i]);
fb_set_di... | null | null | null | https://github.com/relic-toolkit/relic/commit/34580d840469361ba9b5f001361cad659687b9ab | Huge commit improving the API to use size_t instead of int. | src/eb/relic_eb_mul.c | c | 2022-11-14T20:47:12Z |
public function render()
{
$result = new Dto_FormResult('notsubmitted');
// Check permissions
$this->_spotSec->fatalPermCheck(SpotSecurity::spotsec_perform_login, '');
/*
* Create a default SpotUser so the form is always able to render
* the values of the form
... | public function render()
{
$result = new Dto_FormResult('notsubmitted');
// Check permissions
$this->_spotSec->fatalPermCheck(SpotSecurity::spotsec_perform_login, '');
/*
* Create a default SpotUser so the form is always able to render
* the values of the form
... | CVE-2021-43725 | CWE-79 | There is a Cross Site Scripting (XSS) vulnerability in SpotPage_login.php of Spotweb 1.5.1 and below, which allows remote attackers to inject arbitrary web script or HTML via the data[performredirect] parameter. | https://github.com/spotweb/spotweb/commit/2bfa001689aae96009688a193c64478647ba45a1 | Update SpotPage_login.php
For for issue: https://github.com/spotweb/spotweb/issues/718 | SpotPage_login.php | php | 2022-03-28T13:15:00Z |
bool PM_io_parser<PMDEC>::read_vertex(Vertex_handle v)
{
// precondition: nodes exist
// syntax: index { mark, point, isolated object }
int n; bool iso; int f; Mark m; Point p;
if ( !(in >> n) ||
!check_sep("{") ||
!(in >> iso) ||
!(in >> f) ||
!check_sep(",") ||
!(in >> m) ||... | bool PM_io_parser<PMDEC>::read_vertex(Vertex_handle v)
{
// precondition: nodes exist
// syntax: index { mark, point, isolated object }
int n; bool iso; int f; Mark m; Point p;
if ( !(in >> n) ||
!check_sep("{") ||
!(in >> iso) ||
!(in >> f) ||
!check_sep(",") ||
!(in >> m) ||... | null | CWE-269 | null | https://github.com/CGAL/cgal/commit/618b409b0fbcef7cb536a4134ae3a424ef5aae45 | Fix Nef_2 and Nef_S2 IO | null | null | 2021-01-18T14:40:40Z |
@Override
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
throws IOException, ServletException {
HttpServletRequest req = (HttpServletRequest) request;
Response rsp = new Response((HttpServletResponse) response);
if (verify(req, rsp)) {
chain.doFilter... | @Override
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
throws IOException, ServletException {
HttpServletRequest req = (HttpServletRequest) request;
Response rsp = new Response((HttpServletResponse) response);
if (session.get().isSignedIn() || verify(req... | null | null | null | https://github.com/GerritCodeReview/gerrit/commit/736795b48443727ef3bfe9ed2ce8d7db49226a47 | Avoid multiple auth requests for Git/HTTP access
When authenticating incoming Git calls over HTTP
the BasicAuth filter was called 3 times per call
triggering multiple authentications against the backend.
Example: Git protocol v1 triggering 2x HTTP calls,
one for refs-advertisement and another for upload-pack
was gene... | java/com/google/gerrit/httpd/ProjectBasicAuthFilter.java | java | 2021-05-05T21:39:03Z |
def create_cf_base():
url = 'http://codeforces.com/problemset/'
r = requests.get(url)
max_page = 0
soup = BeautifulSoup(r.text, "lxml")
base = sqlite3.connect(os.path.abspath(os.path.dirname(__file__)) + "\\cf.db")
conn = base.cursor()
conn.execute("create table problems (problem INTEGER, di... | def create_cf_base():
url = 'http://codeforces.com/problemset/'
r = requests.get(url)
max_page = 0
soup = BeautifulSoup(r.text, "lxml")
base = sqlite3.connect(os.path.abspath(os.path.dirname(__file__)) + "\\cf.db")
conn = base.cursor()
conn.execute("create table problems (problem INTEGER, di... | null | cwe-089 | null | github.com/lissrbay/codeforces_bot/commit/cc7f5143445a0030b1149ac60a65b1b1b9c92a90 | null | bases/createcfbase.py | py | 2018-01-02T02:07:43Z |
@Override
public User loadUser(String username) throws IOException {
File userProfile =
SystemFileFactory.INSTANCE.getFile(
userDirPath + File.separator + username + IoTDBConstant.PROFILE_SUFFIX);
if (!userProfile.exists() || !userProfile.isFile()) {
// System may crush before a newe... | @Override
public User loadUser(String username) throws IOException {
File userProfile =
SystemFileFactory.INSTANCE.getFile(
userDirPath + File.separator + username + IoTDBConstant.PROFILE_SUFFIX);
if (!userProfile.exists() || !userProfile.isFile()) {
// System may crush before a newe... | null | null | null | https://github.com/apache/iotdb/commit/f0ec7abe967117e160c9be368b0430d1ad6067c7 | [IOTDB-3139] fix place of auth folder. (#5855) | node-commons/src/main/java/org/apache/iotdb/commons/auth/user/LocalFileUserAccessor.java | java | 2022-05-11T01:32:33Z |
network_init ()
{
#ifdef HAVE_GNUTLS
char *ca_path, *ca_path2;
gnutls_global_init ();
gnutls_certificate_allocate_credentials (&gnutls_xcred);
ca_path = string_expand_home (CONFIG_STRING(config_network_gnutls_ca_file));
if (ca_path)
{
ca_path2 = string_replace (ca_path, "%h", weech... | network_init ()
{
#ifdef HAVE_GNUTLS
char *ca_path, *ca_path2;
gnutls_global_init ();
gnutls_certificate_allocate_credentials (&gnutls_xcred);
ca_path = string_expand_home (CONFIG_STRING(config_network_gnutls_ca_file));
if (ca_path)
{
ca_path2 = string_replace (ca_path, "%h", weech... | CVE-2011-1428 | CWE-20 | Wee Enhanced Environment for Chat (aka WeeChat) 0.3.4 and earlier does not properly verify that the server hostname matches the domain name of the subject of an X.509 certificate, which allows man-in-the-middle attackers to spoof an SSL chat server via an arbitrary certificate, related to incorrect use of the GnuTLS AP... | https://git.savannah.gnu.org/gitweb/?p=weechat.git;a=commit;h=c265cad1c95b84abfd4e8d861f25926ef13b5d91 | null | null | c | null |
public void renderHead(IHeaderResponse response) {
super.renderHead(response);
response.render(JavaScriptHeaderItem.forReference(new MarkdownResourceReference()));
String encodedAttachmentSupport;
if (getAttachmentSupport() != null) {
encodedAttachmentSupport = Base64.encodeBase64String(SerializationUtils... | public void renderHead(IHeaderResponse response) {
super.renderHead(response);
response.render(JavaScriptHeaderItem.forReference(new MarkdownResourceReference()));
String actionCallback = actionBehavior.getCallbackFunction(explicit("action"), explicit("param1"), explicit("param2"),
explicit("param3")).toS... | CVE-2021-21242 | CWE-502,CWE-74 | OneDev is an all-in-one devops platform. In OneDev before version 4.0.3, there is a critical vulnerability which can lead to pre-auth remote code execution. AttachmentUploadServlet deserializes untrusted data from the `Attachment-Support` header. This Servlet does not enforce any authentication or authorization checks.... | https://github.com/theonedev/onedev/commit/f864053176c08f59ef2d97fea192ceca46a4d9be | Do not use deserialized AttachmentSupport from client side to avoid security vulnerabilities | markdown.js | js | 2021-01-15T21:15:00Z |
const std::string& get_id() const {
ceph_assert(t != Wildcard && t != Tenant);
return u.id;
} | const std::string& get_id() const {
return u.id;
} | null | CWE-617 | null | https://github.com/ceph/ceph/commit/b3118cabb8060a8cc6a01c4e8264cb18e7b1745a | rgw: Remove assertions in IAM Policy
A couple of them could be triggered by user input.
Signed-off-by: Adam C. Emerson <aemerson@redhat.com> | null | null | 2017-10-10T20:21:48Z |
static int pcrypt_create_aead(struct crypto_template *tmpl, struct rtattr **tb,
u32 type, u32 mask)
{
struct pcrypt_instance_ctx *ctx;
struct crypto_attr_type *algt;
struct aead_instance *inst;
struct aead_alg *alg;
const char *name;
int err;
algt = crypto_get_attr_type(tb);
if (IS_ERR(algt))
return... | static int pcrypt_create_aead(struct crypto_template *tmpl, struct rtattr **tb,
u32 type, u32 mask)
{
struct pcrypt_instance_ctx *ctx;
struct crypto_attr_type *algt;
struct aead_instance *inst;
struct aead_alg *alg;
const char *name;
int err;
algt = crypto_get_attr_type(tb);
if (IS_ERR(algt))
return... | null | null | null | https://github.com/torvalds/linux/commit/d76c68109f37cb85b243a1cf0f40313afd2bae68 | crypto: pcrypt - fix freeing pcrypt instances
pcrypt is using the old way of freeing instances, where the ->free()
method specified in the 'struct crypto_template' is passed a pointer to
the 'struct crypto_instance'. But the crypto_instance is being
kfree()'d directly, which is incorrect because the memory was actual... | crypto/pcrypt.c | c | 2017-12-20T22:28:25Z |
@Override
public String fromXML(String source) throws MessageSerializerException {
XMLReader xr;
try {
xr = XMLReaderFactory.createXMLReader();
} catch (SAXException e) {
throw new MessageSerializerException("Error converting XML to EDI", e, ErrorMessageBuilder.buildE... | @Override
public String fromXML(String source) throws MessageSerializerException {
XMLReader xr;
try {
xr = XMLReaderFactory.createXMLReader();
xr.setFeature("http://apache.org/xml/features/nonvalidating/load-external-dtd", false);
xr.setFeature("http://xml.org/sa... | null | null | null | https://github.com/nextgenhealthcare/connect/commit/26bf3ae1a1b410e4f0b2ba27e13707f15a77716e | ROCKSOLID-6533 Added vulnerability in XMLReader | server/src/com/mirth/connect/plugins/datatypes/edi/EDISerializer.java | java | 2021-07-29T17:16:43Z |
int pkcs11_pass_login(pkcs11_handle_t *h, int nullok)
{
int rv;
char *pin;
/* get password */
pin =getpass("PIN for token: ");
#ifdef DEBUG_SHOW_PASSWORD
DBG1("PIN = [%s]", pin);
#endif
if (NULL == pin) {
set_error("Error encountered while reading PIN");
return -1;
}
/* for safety reasons, cl... | int pkcs11_pass_login(pkcs11_handle_t *h, int nullok)
{
int rv;
char *pin;
/* get password */
pin =getpass("PIN for token: ");
#ifdef DEBUG_SHOW_PASSWORD
DBG1("PIN = [%s]", pin);
#endif
if (NULL == pin) {
set_error("Error encountered while reading PIN");
return -1;
}
/* for safety reasons, cl... | null | null | null | https://github.com/OpenSC/pam_pkcs11/commit/a0c9b6ffc020944f03f57e7de66ad4363d52125d | fixed wiping secrets with OpenSSL_cleanse()
Thanks to Eric Sesterhenn from X41 D-SEC GmbH
for reporting the problems. | null | null | 2018-05-25T22:10:49Z |
static int get_next_block(bunzip_data *bd)
{
struct group_data *hufGroup;
int dbufCount, dbufSize, groupCount, *base, *limit, selector,
i, j, runPos, symCount, symTotal, nSelectors, byteCount[256];
int runCnt = runCnt; /* for compiler */
uint8_t uc, symToByte[256], mtfSymbol[256], *selectors;
uint32_t *dbuf;
un... | static int get_next_block(bunzip_data *bd)
{
struct group_data *hufGroup;
int groupCount, *base, *limit, selector,
i, j, symCount, symTotal, nSelectors, byteCount[256];
uint8_t uc, symToByte[256], mtfSymbol[256], *selectors;
uint32_t *dbuf;
unsigned origPtr, t;
unsigned dbufCount, runPos;
unsigned runCnt = run... | CVE-2017-15873 | CWE-190 | The get_next_block function in archival/libarchive/decompress_bunzip2.c in BusyBox 1.27.2 has an Integer Overflow that may lead to a write access violation. | https://git.busybox.net/busybox/commit/?id=0402cb32df015d9372578e3db27db47b33d5c7b0 | bunzip2: fix runCnt overflow from bug 10431
This particular corrupted file can be dealth with by using "unsigned".
If there will be cases where it genuinely overflows, there is a disabled
code to deal with that too.
function old new delta
get_next_block ... | null | null | null |
@Implementation(minSdk = LOLLIPOP_MR1)
protected List<SubscriptionInfo> getActiveSubscriptionInfoList() {
return subscriptionList;
} | @Implementation(minSdk = LOLLIPOP_MR1)
protected List<SubscriptionInfo> getActiveSubscriptionInfoList() {
checkReadPhoneStatePermission();
return subscriptionList;
} | null | null | null | https://github.com/robolectric/robolectric/commit/b14d8bd98f6a3f695acee4d6f5967632e11f8c48 | Add ShadowSubscriptionManager#checkReadPhoneStatePermission.
ShadowSubscriptionManager#checkReadPhoneStatePermission allows to test permission errors. When set to false, methods that require READ_PHONE_STATE permissions will now throw a SecurityException. By default the permissions are granted for backwards compatibil... | shadows/framework/src/main/java/org/robolectric/shadows/ShadowSubscriptionManager.java | java | 2022-07-13T02:12:56Z |
public function execute( $par ) {
$user = $this->getUser();
$out = $this->getOutput();
$out->setPageTitle( wfMessage('report-title')->escaped() );
$out->addModules( 'ext.report' );
$this->checkReadOnly();
if ( !$user->isAllowed( 'report' ) ) {
$out->addHTML(Html::rawElement(
'p',
[ 'class' => 'er... | public function execute( $par ) {
$user = $this->getUser();
$out = $this->getOutput();
$out->setPageTitle( wfMessage('report-title')->escaped() );
$out->addModules( 'ext.report' );
$this->checkReadOnly();
if ( !$user->isAllowed( 'report' ) ) {
$out->addHTML(Html::rawElement(
'p',
[ 'class' => 'er... | CVE-2021-21275 | CWE-352,CWE-352 | The MediaWiki "Report" extension has a Cross-Site Request Forgery (CSRF) vulnerability. Before fixed version, there was no protection against CSRF checks on Special:Report, so requests to report a revision could be forged. The problem has been fixed in commit f828dc6 by making use of MediaWiki edit tokens. | https://github.com/Kenny2github/Report/commit/f828dc6f73cdfaea5639edbf8ac7b326eeefb117 | Add CSRF check for Special:Report
Also clean up a little of the logic | SpecialReport.php | php | 2021-01-25T23:15:00Z |
static int test_sm2_crypt(const EC_GROUP *group,
const EVP_MD *digest,
const char *privkey_hex,
const char *message,
const char *k_hex, const char *ctext_hex)
{
const size_t msg_len = strlen(message);
BIGNUM ... | static int test_sm2_crypt(const EC_GROUP *group,
const EVP_MD *digest,
const char *privkey_hex,
const char *message,
const char *k_hex, const char *ctext_hex)
{
const size_t msg_len = strlen(message);
BIGNUM ... | CVE-2021-3711 | CWE-120 | In order to decrypt SM2 encrypted data an application is expected to call the API function EVP_PKEY_decrypt(). Typically an application will call this function twice. The first time, on entry, the "out" parameter can be NULL and, on exit, the "outlen" parameter is populated with the buffer size required to hold the dec... | https://github.com/openssl/openssl/commit/59f5e75f3bced8fc0e130d72a3f582cf7b480b46 | Correctly calculate the length of SM2 plaintext given the ciphertext
Previously the length of the SM2 plaintext could be incorrectly calculated.
The plaintext length was calculated by taking the ciphertext length and
taking off an "overhead" value.
The overhead value was assumed to have a "fixed" element of 10 bytes.... | null | null | 2021-08-13T13:14:51Z |
static void vhost_scsi_class_init(ObjectClass *klass, void *data)
{
DeviceClass *dc = DEVICE_CLASS(klass);
VirtioDeviceClass *vdc = VIRTIO_DEVICE_CLASS(klass);
dc->exit = vhost_scsi_exit;
dc->props = vhost_scsi_properties;
set_bit(DEVICE_CATEGORY_STORAGE, dc->categories);
vdc->init = vhost_scsi_... | static void vhost_scsi_class_init(ObjectClass *klass, void *data)
{
DeviceClass *dc = DEVICE_CLASS(klass);
VirtioDeviceClass *vdc = VIRTIO_DEVICE_CLASS(klass);
dc->props = vhost_scsi_properties;
set_bit(DEVICE_CATEGORY_STORAGE, dc->categories);
vdc->init = vhost_scsi_init;
vdc->exit = vhost_scsi... | null | null | null | qemu/commit/e3c9d76acc984218264bbc6435b0c09f959ed9b8 | virtio-scsi: switch exit callback to VirtioDeviceClass
This ensures hot-unplug is handled properly by the proxy, and avoids
leaking bus_name which is freed by virtio_device_exit.
Cc: qemu-stable@nongnu.org
Acked-by: Andreas Faerber <afaerber@suse.de>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> | ./qemu/hw/scsi/vhost-scsi.c | c | 2013-09-20T12:06:08Z |
@ExceptionHandler
protected ResponseEntity<Object> handleConflict(Exception ex, WebRequest request) {
LOGGER.error(ExceptionUtils.getStackTrace(ex));
return handleExceptionInternal(ex, ex.getMessage() /* ExceptionUtils.getStackTrace(ex) */, new HttpHeaders(),
HttpStatus.CONFLICT, request);
} | @ExceptionHandler
protected ResponseEntity<Object> handleConflict(Exception ex, WebRequest request) {
LOGGER.error(ExceptionUtils.getStackTrace(ex));
return handleExceptionInternal(ex, HtmlUtils.htmlEscape(ex.getMessage()), new HttpHeaders(),
HttpStatus.CONFLICT, request);
} | null | null | null | https://github.com/Alovoa/alovoa/commit/3c93dea7aae02c09af12882984d66972851e4890 | Update cache version | src/main/java/com/nonononoki/alovoa/component/RestExceptionHandler.java | java | 2021-07-19T12:15:54Z |
gboolean
flatpak_dir_deploy (FlatpakDir *self,
const char *origin,
const char *ref,
const char *checksum_or_latest,
const char * const * subpaths,
GVariant *old_deploy_data,... | gboolean
flatpak_dir_deploy (FlatpakDir *self,
const char *origin,
const char *ref,
const char *checksum_or_latest,
const char * const * subpaths,
GVariant *old_deploy_data,... | null | null | null | https://github.com/cgwalters/flatpak/commit/ec6c3c5d043c941f6a736b63e56a305973928c02 | system-helper: Use new ostree APIs to reject world-writable/suid content
This uses the new libostree APIs that landed recently to ensure
that we reject any files with mode outside of `0775` for system
helper pulls, and we also neuter directories during checkout.
However, this does *not* fix up any already downloaded ... | common/flatpak-dir.c | c | 2017-06-14T14:15:02Z |
bool copyaudiodata (AFfilehandle infile, AFfilehandle outfile, int trackid)
{
int frameSize = afGetVirtualFrameSize(infile, trackid, 1);
const int kBufferFrameCount = 65536;
void *buffer = malloc(kBufferFrameCount * frameSize);
AFframecount totalFrames = afGetFrameCount(infile, AF_DEFAULT_TRACK);
AFframecount to... | bool copyaudiodata (AFfilehandle infile, AFfilehandle outfile, int trackid)
{
int frameSize = afGetVirtualFrameSize(infile, trackid, 1);
int kBufferFrameCount = 65536;
int bufferSize;
while (multiplyCheckOverflow(kBufferFrameCount, frameSize, &bufferSize))
kBufferFrameCount /= 2;
void *buffer = malloc(bufferSiz... | CVE-2017-6838 | CWE-190 | Integer overflow in sfcommands/sfconvert.c in Audio File Library (aka audiofile) 0.3.6 allows remote attackers to cause a denial of service (crash) via a crafted file. | https://github.com/antlarr/audiofile/commit/7d65f89defb092b63bcbc5d98349fb222ca73b3c | Check for multiplication overflow in sfconvert
Checks that a multiplication doesn't overflow when
calculating the buffer size, and if it overflows,
reduce the buffer size instead of failing.
This fixes the 00192-audiofile-signintoverflow-sfconvert case
in #41 | sfconvert.c | c | 2017-03-06T12:54:52Z |
def capture_event(
self,
event, # type: Event
hint=None, # type: Optional[Hint]
scope=None, # type: Optional[Scope]
):
# type: (...) -> Optional[str]
"""Captures an event.
:param event: A ready-made event that can be directly sent to Sentry.
:para... | def capture_event(
self,
event, # type: Event
hint=None, # type: Optional[Hint]
scope=None, # type: Optional[Scope]
):
# type: (...) -> Optional[str]
"""Captures an event.
:param event: A ready-made event that can be directly sent to Sentry.
:para... | null | null | null | https://github.com/getsentry/sentry-python/commit/a808f20aa75ba0705a63e3e49952e5a4a5b9b678 | Merge branch 'antonpirker/django-cookies' of github.com:getsentry/sentry-python into antonpirker/django-cookies | sentry_sdk/client.py | py | 2023-01-18T11:20:59Z |
@Override
public void onSuccess(List<LivestreamReplay> replays) {
if (replays.size() != 0) {
layoutLivestreamReplaysList.setVisibility(View.VISIBLE);
textReplaysTitle.setText(R.string.select_replay);
} else {
layoutL... | @Override
public void onSuccess(List<LivestreamReplay> replays) {
FragmentActivity activity = getActivity();
if (activity != null) {
if (replays.size() != 0) {
layoutLivestreamReplaysList.setVisibility(View.VISIBLE);
... | null | null | null | https://github.com/OdyseeTeam/odysee-android/commit/f46109535f171c5ea01116c6966e1b51f26a0829 | go live form: fix crash when going back immediately after entering
Check if activity is not null before initializing ReplaysPagerAdapter.
Also only load replays when actually on replays tab. | app/src/main/java/com/odysee/app/ui/publish/GoLiveFormFragment.java | java | 2022-11-04T02:39:34Z |
static inline int wv_get_value_integer(WavpackFrameContext *s, uint32_t *crc, int S)
{
int bit;
if(s->extra_bits){
S <<= s->extra_bits;
if(s->got_extra_bits){
S |= get_bits(&s->gb_extra_bits, s->extra_bits);
*crc = *crc * 9 + (S&0xffff) * 3 + ((unsigned)S>>16);
}
... | static inline int wv_get_value_integer(WavpackFrameContext *s, uint32_t *crc, int S)
{
int bit;
if(s->extra_bits){
S <<= s->extra_bits;
if(s->got_extra_bits && get_bits_left(&s->gb_extra_bits) >= s->extra_bits){
S |= get_bits(&s->gb_extra_bits, s->extra_bits);
*crc = *crc... | null | null | null | FFmpeg/commit/beefafda639dd53fc59c21d8a7cf8334da9a1062 | Fixed invalid access in wavpack decoder on corrupted extra bits sub-blocks.
Signed-off-by: Martin Storsjö <martin@martin.st> | ./ffmpeg/libavcodec/wavpack.c | c | 2011-09-07T21:12:32Z |
@POST
@Path("/auth")
@ApiOperation(
value = "Create Token",
notes = "Create an authorization token to authenticate and perform requests.",
response = AuthTokenResponse.class,
code = 201)
@ApiResponses(
value = {
@ApiResponse(code = 201, message = "resource created", response ... | @POST
@Path("/auth")
@ApiOperation(
value = "Create Token",
notes = "Create an authorization token to authenticate and perform requests.",
response = AuthTokenResponse.class,
code = 201)
@ApiResponses(
value = {
@ApiResponse(code = 201, message = "resource created", response ... | null | null | null | https://github.com/stargate/stargate/commit/144565c141fc716a57a7be01edfa3d0f7640e4de | Add Cache-Control header to auth-api responses - Fixes #762 (#767)
* Add Cache-Control header to auth-api responses
* Add padding to max-age for returned auth tokens
* Use CacheControl object instead of creating each time
* Add comment for tokenMaxAge | auth-api/src/main/java/io/stargate/auth/api/resources/AuthResource.java | java | 2021-03-24T18:50:03Z |
int vc1_decode_sequence_header(AVCodecContext *avctx, VC1Context *v, GetBitContext *gb)
{
av_log(avctx, AV_LOG_DEBUG, "Header: %0X\n", show_bits(gb, 32));
v->profile = get_bits(gb, 2);
if (v->profile == PROFILE_COMPLEX)
{
av_log(avctx, AV_LOG_WARNING, "WMV3 Complex Profile is not fully supported... | int vc1_decode_sequence_header(AVCodecContext *avctx, VC1Context *v, GetBitContext *gb)
{
av_log(avctx, AV_LOG_DEBUG, "Header: %0X\n", show_bits(gb, 32));
v->profile = get_bits(gb, 2);
if (v->profile == PROFILE_COMPLEX)
{
av_log(avctx, AV_LOG_WARNING, "WMV3 Complex Profile is not fully supported... | null | null | null | FFmpeg/commit/4f00519d9508e07aac58a00a9b514dae8ad95723 | Fix VC-1 width/height handling.
avcodec_set_dimensions should be used for size changes to ensure
compatibility with future changes.
avctx->width/avctx->height may not be set to display-only dimensions.
Even more so since vc1dec.c would later set coded_width/height based
on this.
coded_width/coded_height should be used... | ./ffmpeg/libavcodec/vc1.c | c | 2011-08-13T09:32:10Z |
static void copy_xauthority(void) {
// copy XAUTHORITY_FILE in the new home directory
char *src = RUN_XAUTHORITY_FILE ;
char *dest;
if (asprintf(&dest, "%s/.Xauthority", cfg.homedir) == -1)
errExit("asprintf");
// if destination is a symbolic link, exit the sandbox!!!
if (is_link(dest)) {
fprintf(stderr, "Er... | static void copy_xauthority(void) {
// copy XAUTHORITY_FILE in the new home directory
char *src = RUN_XAUTHORITY_FILE ;
char *dest;
if (asprintf(&dest, "%s/.Xauthority", cfg.homedir) == -1)
errExit("asprintf");
// if destination is a symbolic link, exit the sandbox!!!
if (is_link(dest)) {
fprintf(stderr, "E... | null | null | null | https://github.com/netblue30/firejail/commit/903fd8a0789ca3cc3c21d84cd0282481515592ef | security fix | src/firejail/fs_home.c | c | 2017-01-12T18:44:29Z |
nvmet_fc_find_target_queue(struct nvmet_fc_tgtport *tgtport,
u64 connection_id)
{
struct nvmet_fc_tgt_assoc *assoc;
struct nvmet_fc_tgt_queue *queue;
u64 association_id = nvmet_fc_getassociationid(connection_id);
u16 qid = nvmet_fc_getqueueid(connection_id);
unsigned long flags;
spin_lock_irqsave(&tgtpor... | nvmet_fc_find_target_queue(struct nvmet_fc_tgtport *tgtport,
u64 connection_id)
{
struct nvmet_fc_tgt_assoc *assoc;
struct nvmet_fc_tgt_queue *queue;
u64 association_id = nvmet_fc_getassociationid(connection_id);
u16 qid = nvmet_fc_getqueueid(connection_id);
unsigned long flags;
if (qid > NVMET_NR_QUEUES)... | CVE-2017-18379 | CWE-119 | In the Linux kernel before 4.14, an out of boundary access happened in drivers/nvme/target/fc.c. | https://github.com/torvalds/linux/commit/0c319d3a144d4b8f1ea2047fd614d2149b68f889 | nvmet-fc: ensure target queue id within range.
When searching for queue id's ensure they are within the expected range.
Signed-off-by: James Smart <james.smart@broadcom.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk> | fc.c | c | 2017-09-19T23:33:56Z |
function configure(config, layouts) {
let layout = layouts.basicLayout;
if (config.layout) {
layout = layouts.layout(config.layout.type, config.layout);
}
if (!config.alwaysIncludePattern) {
config.alwaysIncludePattern = false;
}
return appender(
config.filename,
config.pattern,
layou... | function configure(config, layouts) {
let layout = layouts.basicLayout;
if (config.layout) {
layout = layouts.layout(config.layout.type, config.layout);
}
if (!config.alwaysIncludePattern) {
config.alwaysIncludePattern = false;
}
// security default (instead of relying on streamroller default)
c... | CVE-2022-21704 | CWE-276,CWE-276 | log4js-node is a port of log4js to node.js. In affected versions default file permissions for log files created by the file, fileSync and dateFile appenders are world-readable (in unix). This could cause problems if log files contain sensitive information. This would affect any users that have not supplied their own pe... | https://github.com/log4js-node/log4js-node/commit/8042252861a1b65adb66931fdf702ead34fa9b76 | Changed default file modes from 0o644 to 0o600 for better security | lib/appenders/dateFile.js | js | 2022-01-16T14:09:32Z |
public static function insert ($vars) {
if(is_array($vars)){
$set = "";
$k = "";
foreach ($vars['key'] as $key => $val) {
$set .= "'$val',";
$k .= "`$key`,";
}
$set = substr($set, 0,-1);
$k = sub... | public static function insert ($vars) {
if(is_array($vars)){
$set = "";
$k = "";
foreach ($vars['key'] as $key => $val) {
$set .= "'$val',";
$k .= "`$key`,";
}
$set = substr($set, 0,-1);
$k = sub... | CVE-2015-2678 | CWE-79 | Multiple cross-site scripting (XSS) vulnerabilities in MetalGenix GeniXCMS before 0.0.2 allow remote attackers to inject arbitrary web script or HTML via the (1) cat parameter in the categories page to gxadmin/index.php or (2) page parameter to index.php. | https://github.com/semplon/GeniXCMS/commit/698245488343396185b1b49e7482ee5b25541815 | Security FIX, Bug FIX | Menus.class.php | php | 2015-03-23T16:59:00Z |
lldp_mgmt_addr_tlv_print(netdissect_options *ndo,
const u_char *pptr, u_int len)
{
uint8_t mgmt_addr_len, intf_num_subtype, oid_len;
const u_char *tptr;
u_int tlen;
char *mgmt_addr;
tlen = len;
tptr = pptr;
if (tlen < 1) {
return 0;
}
mgmt_addr_len ... | lldp_mgmt_addr_tlv_print(netdissect_options *ndo,
const u_char *pptr, u_int len)
{
uint8_t mgmt_addr_len, intf_num_subtype, oid_len;
const u_char *tptr;
u_int tlen;
char *mgmt_addr;
tlen = len;
tptr = pptr;
if (tlen < 1) {
return 0;
}
mgmt_addr_len ... | CVE-2017-13027 | CWE-125 | The LLDP parser in tcpdump before 4.9.2 has a buffer over-read in print-lldp.c:lldp_mgmt_addr_tlv_print(). | https://github.com/the-tcpdump-group/tcpdump/commit/a77ff09c46560bc895dea11dc9fe643486b056ac | CVE-2017-13027/LLDP: Fix a bounds check.
The total length of the OID is the OID length plus the length of the OID
length itself.
This fixes a buffer over-read discovered by Bhargava Shastry,
SecT/TU Berlin.
Add a test using the capture file supplied by the reporter(s), modified
so the capture file won't be rejected ... | print-lldp.c | c | 2017-03-22T18:21:00Z |
static void check_watchpoint(int offset, int len_mask, int flags)
{
CPUState *env = cpu_single_env;
target_ulong pc, cs_base;
TranslationBlock *tb;
target_ulong vaddr;
CPUWatchpoint *wp;
int cpu_flags;
if (env->watchpoint_hit) {
cpu_interrupt(env, CPU_INTERRUPT_DEBUG);
... | static void check_watchpoint(int offset, int len_mask, int flags)
{
CPUState *env = cpu_single_env;
target_ulong pc, cs_base;
TranslationBlock *tb;
target_ulong vaddr;
CPUWatchpoint *wp;
int cpu_flags;
if (env->watchpoint_hit) {
cpu_interrupt(env, CPU_INTERRUPT_DEBUG);
... | null | null | null | qemu/commit/488d65772ce94aa439f26d7136db384aec460bcb | exec: fix check_watchpoint exiting cpu_loop
In case of BP_STOP_BEFORE_ACCESS watchpoint check_watchpoint intends to
signal EXCP_DEBUG exception on exit from cpu loop, but later overwrites
exception code by the cpu_resume_from_signal call.
Use cpu_loop_exit with BP_STOP_BEFORE_ACCESS watchpoints.
Signed-off-by: Max F... | ./qemu/exec.c | c | 2012-01-28T22:24:39Z |
process_add_smartcard_key(SocketEntry *e)
{
char *provider = NULL, *pin;
int r, i, version, count = 0, success = 0, confirm = 0;
u_int seconds;
time_t death = 0;
u_char type;
struct sshkey **keys = NULL, *k;
Identity *id;
Idtab *tab;
if ((r = sshbuf_get_cstring(e->request, &provider, NULL)) != 0 ||
(r = ... | process_add_smartcard_key(SocketEntry *e)
{
char *provider = NULL, *pin, canonical_provider[PATH_MAX];
int r, i, version, count = 0, success = 0, confirm = 0;
u_int seconds;
time_t death = 0;
u_char type;
struct sshkey **keys = NULL, *k;
Identity *id;
Idtab *tab;
if ((r = sshbuf_get_cstring(e->request, &provi... | CVE-2016-10009 | CWE-426 | Untrusted search path vulnerability in ssh-agent.c in ssh-agent in OpenSSH before 7.4 allows remote attackers to execute arbitrary local PKCS#11 modules by leveraging control over a forwarded agent-socket. | https://github.com/openbsd/src/commit/9476ce1dd37d3c3218d5640b74c34c65e5f4efe5 | add a whitelist of paths from which ssh-agent will load (via
ssh-pkcs11-helper) a PKCS#11 module; ok markus@ | ssh-agent.c | c | 2017-01-05T02:59:00Z |
private static void insertPacketID(Class<?> cls, byte packetID) {
if (cls != null) {
insertPacketID(cls, packetID);
}
} | private static void insertPacketID(Class<?> cls, byte packetID) {
if (cls != null) {
packetIDMap.put(cls, packetID);
}
} | null | null | null | https://github.com/retrooper/packetevents/commit/c449e8ced1eb3000626dcf76bb4816b4b3553060 | Stackoverflow fix :/ | src/main/java/io/github/retrooper/packetevents/packettype/PacketType.java | java | 2021-03-30T16:52:23Z |
static void huft_free(huft_t *p)
{
huft_t *q;
/* Go through linked list, freeing from the malloced (t[-1]) address. */
while (p) {
q = (--p)->v.t;
free(p);
p = q;
}
} | static void huft_free(huft_t *p)
{
huft_t *q;
/*
* If 'p' has the error bit set we have to clear it, otherwise we might run
* into a segmentation fault or an invalid pointer to free(p)
*/
if (BAD_HUFT(p)) {
p = (huft_t*)((uintptr_t)(p) ^ (uintptr_t)(ERR_RET));
}
/* Go through linked list, freeing from th... | CVE-2021-28831 | CWE-755 | decompress_gunzip.c in BusyBox through 1.32.1 mishandles the error bit on the huft_build result pointer, with a resultant invalid free or segmentation fault, via malformed gzip data. | https://git.busybox.net/busybox/commit/?id=f25d254dfd4243698c31a4f3153d4ac72aa9e9bd | decompress_gunzip: Fix DoS if gzip is corrupt
On certain corrupt gzip files, huft_build will set the error bit on
the result pointer. If afterwards abort_unzip is called huft_free
might run into a segmentation fault or an invalid pointer to
free(p).
In order to mitigate this, we check in huft_free if the error bit
is... | null | null | null |
processDataRcvd(ptcpsess_t *const __restrict__ pThis,
char **buff,
const int buffLen,
struct syslogTime *stTime,
const time_t ttGenTime,
multi_submit_t *pMultiSub,
unsigned *const __restrict__ pnMsgs)
{
DEFiRet;
char c = **buff;
int octatesToCopy, octatesToDiscard;
if(pThis->inputState == eAtStrtFram) {
if... | processDataRcvd(ptcpsess_t *const __restrict__ pThis,
char **buff,
const int buffLen,
struct syslogTime *stTime,
const time_t ttGenTime,
multi_submit_t *pMultiSub,
unsigned *const __restrict__ pnMsgs)
{
DEFiRet;
char c = **buff;
int octatesToCopy, octatesToDiscard;
if(pThis->inputState == eAtStrtFram) {
if... | CVE-2018-16881 | CWE-190 | A denial of service vulnerability was found in rsyslog in the imptcp module. An attacker could send a specially crafted message to the imptcp socket, which would cause rsyslog to crash. Versions before 8.27.0 are vulnerable. | https://github.com/rsyslog/rsyslog/commit/0381a0de64a5a048c3d48b79055bd9848d0c7fc2 | imptcp: fix Segmentation Fault when octet count is to high | imptcp.c | c | 2017-04-19T11:06:30Z |
parsegid(const char *s, gid_t *gid)
{
struct group *gr;
const char *errstr;
if ((gr = getgrnam(s)) != NULL) {
*gid = gr->gr_gid;
return 0;
}
#if !defined(__linux__) && !defined(__NetBSD__)
*gid = strtonum(s, 0, GID_MAX, &errstr);
#else
sscanf(s, "%d", gid);
#endif
if (errstr)
return -1;
return 0;
} | parsegid(const char *s, gid_t *gid)
{
struct group *gr;
#if !defined(__linux__) && !defined(__NetBSD__)
const char *errstr = NULL;
#else
int status;
#endif
if ((gr = getgrnam(s)) != NULL) {
*gid = gr->gr_gid;
return 0;
}
#if !defined(__linux__) && !defined(__NetBSD__)
*gid = strtonum... | CVE-2019-15900 | CWE-754,CWE-863,CWE-908 | An issue was discovered in slicer69 doas before 6.2 on certain platforms other than OpenBSD. On platforms without strtonum(3), sscanf was used without checking for error cases. Instead, the uninitialized variable errstr was checked and in some cases returned success even if sscanf failed. The result was that, instead o... | https://github.com/slicer69/doas/commit/2f83222829448e5bc4c9391d607ec265a1e06531 | Added optimization to Makefile (can be set/overruled using OPT).
Added flag to display all warnings during compiling.
Added status checks when parsing user/group IDs for Linux.
Make sure Linux drops original user's groups when running as another user. | doas.c | c | 2019-09-03T14:42:27Z |
App.Actions.WEB.update_custom_doc_root = function(elm, hint) {
var prepath = $('input[name="v-custom-doc-root_prepath"]').val();
var domain = $('select[name="v-custom-doc-domain"]').val();
var folder = $('input[name="v-custom-doc-folder"]').val();
console.log(domain, folder);
$('.custom_docroot_hint... | App.Actions.WEB.update_custom_doc_root = function(elm, hint) {
var prepath = $('input[name="v-custom-doc-root_prepath"]').val();
var domain = $('select[name="v-custom-doc-domain"]').val();
var folder = $('input[name="v-custom-doc-folder"]').val();
console.log(domain, folder);
$('.custom_docroot_hint... | CVE-2022-0838 | CWE-79,CWE-79 | Cross-site Scripting (XSS) - Reflected in GitHub repository hestiacp/hestiacp prior to 1.5.10. | https://github.com/hestiacp/hestiacp/commit/640f822d306ffb3eddf8ce2f46de75d7344283c1 | replace html() with text
+ 2 small problems on add / edit database page | add_mail_acc.js | js | 2022-03-04T08:15:00Z |
flow_entry_type_t flow_decode(flow_hash_table_t *fht, const struct pcap_pkthdr *pkthdr,
const u_char *pktdata, const int datalink, const int expiry)
{
uint32_t pkt_len = pkthdr->caplen;
const u_char *packet = pktdata;
uint32_t _U_ vlan_offset;
uint16_t ether_type = 0;
ipv4_hdr_t *ip_hdr = NU... | flow_entry_type_t flow_decode(flow_hash_table_t *fht, const struct pcap_pkthdr *pkthdr,
const u_char *pktdata, const int datalink, const int expiry)
{
uint32_t pkt_len = pkthdr->caplen;
const u_char *packet = pktdata;
uint32_t _U_ vlan_offset;
uint32_t _U_ l2offset;
uint16_t ether_type = 0;
... | null | CWE-476 | null | https://github.com/appneta/tcpreplay/commit/46cf964a7db636da76abeebf10482acf6f682a87 | Bug #677 - fixes for tcpprep tree | null | null | 2021-06-29T20:12:21Z |
public static XMLMemento createReadRoot(Reader reader, String baseDir)
throws Exception {
String errorMessage = null;
Exception exception = null;
try {
DocumentBuilderFactory factory = DocumentBuilderFactory
.newInstance();
DocumentBuilder parser = factory.newDocumentBuilder();
InputSource sourc... | public static XMLMemento createReadRoot(Reader reader, String baseDir)
throws Exception {
String errorMessage = null;
Exception exception = null;
DocumentBuilderFactory factory = null;
Object attributeDTDOldValue = null;
Object attributeSchemaOldValue = null;
try {
factory = DocumentBuilderFactory.new... | null | null | null | https://github.com/eclipse-platform/eclipse.platform/commit/e81a54a076c159432d2e8b1c661d94a805516849 | Bug 577341 - Security Issue -- XXE Attack
Applications using XMLMemento are vulnerable to XXE Attack
see https://docs.oracle.com/en/java/javase/17/security/java-api-xml-processing-jaxp-security-guide.html
Change-Id: I3f413123158ce2ff76ff250f84fe338520d0882e
Reviewed-on: https://git.eclipse.org/r/c/platform/eclipse.p... | org.eclipse.debug.core/core/org/eclipse/debug/internal/core/XMLMemento.java | java | 2021-11-22T13:04:49Z |
static inline int parse_nal_units(AVCodecParserContext *s, const uint8_t *buf,
int buf_size, AVCodecContext *avctx)
{
HEVCParserContext *ctx = s->priv_data;
HEVCContext *h = &ctx->h;
GetBitContext *gb;
SliceHeader *sh = &h->sh;
HEVCParamSets *ps = &h->p... | static inline int parse_nal_units(AVCodecParserContext *s, const uint8_t *buf,
int buf_size, AVCodecContext *avctx)
{
HEVCParserContext *ctx = s->priv_data;
HEVCContext *h = &ctx->h;
GetBitContext *gb;
SliceHeader *sh = &h->sh;
HEVCParamSets *ps = &h->p... | null | null | null | FFmpeg/commit/964f07f68e1cc4e2d585615e2b1a1fade269afb0 | hevc: Fix memory leak related to a53_caption data
Signed-off-by: Will Kelleher <wkelleher@gogoair.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> | ./ffmpeg/libavcodec/hevc_parser.c | c | 2016-04-07T13:58:31Z |
@Override
public void fromNBT(NBTTagCompound tag)
{
super.fromNBT(tag);
if (tag.hasKey("Texture")) this.texture = RLUtils.create(tag.getTag("Texture"));
if (tag.hasKey("Shaded")) this.shaded = tag.getBoolean("Shaded");
if (tag.hasKey("Lighting")) this.lighting = tag.getBoolean("... | @Override
public void fromNBT(NBTTagCompound tag)
{
super.fromNBT(tag);
if (tag.hasKey("Texture")) this.texture = RLUtils.create(tag.getTag("Texture"));
if (tag.hasKey("Shaded")) this.shaded = tag.getBoolean("Shaded");
if (tag.hasKey("Lighting")) this.lighting = tag.getBoolean("... | null | null | null | https://github.com/mchorse/blockbuster/commit/19a2706412377fafb99b7340f18b621dc5a211e2 | Fix crash on servers because LightMorph calls Gui | src/main/java/mchorse/blockbuster_pack/morphs/ImageMorph.java | java | 2022-09-09T10:13:07Z |
static int rose_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
{
struct sock *sk = sock->sk;
struct rose_sock *rose = rose_sk(sk);
void __user *argp = (void __user *)arg;
switch (cmd) {
case TIOCOUTQ: {
long amount;
amount = sk->sk_sndbuf - sk_wmem_alloc_get(sk);
if (amount < 0)
amount ... | static int rose_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
{
struct sock *sk = sock->sk;
struct rose_sock *rose = rose_sk(sk);
void __user *argp = (void __user *)arg;
switch (cmd) {
case TIOCOUTQ: {
long amount;
amount = sk->sk_sndbuf - sk_wmem_alloc_get(sk);
if (amount < 0)
amount ... | null | null | null | https://github.com/torvalds/linux/commit/810c38a369a0a0ce625b5c12169abce1dd9ccd53 | net/rose: Fix Use-After-Free in rose_ioctl
Because rose_ioctl() accesses sk->sk_receive_queue
without holding a sk->sk_receive_queue.lock, it can
cause a race with rose_accept().
A use-after-free for skb occurs with the following flow.
```
rose_ioctl() -> skb_peek()
rose_accept() -> skb_dequeue() -> kfree_skb()
```
Ad... | net/rose/af_rose.c | c | 2023-12-09T10:05:38Z |
private void initTmpDir() {
try {
temporaryDirectory = File.createTempFile("benchmark-reports", "", null);
if (!temporaryDirectory.delete()
|| !temporaryDirectory.mkdir()) {
throw new IOException("Unable to create temporary directory.\n"
+ temporaryDirectory.getCanonicalPath())... | private void initTmpDir() {
try {
temporaryDirectory = Files.createTempDirectory("benchmark-reports").toFile();
} catch (IOException e) {
e.printStackTrace();
}
} | null | null | null | https://github.com/GateNLP/gate-core/commit/fb68ccabe2dc9a55b5db4275e4c56b43661e2da8 | vuln-fix: Temporary Directory Hijacking or Information Disclosure
This fixes either Temporary Directory Hijacking, or Temporary Directory Local Information Disclosure.
Weakness: CWE-379: Creation of Temporary File in Directory with Insecure Permissions
Severity: High
CVSSS: 7.3
Detection: CodeQL & OpenRewrite (https:... | src/main/java/gate/util/reporting/DocTimeReporter.java | java | 2022-08-09T03:20:30Z |
static void check_pointer_type_change(Notifier *notifier, void *data)
{
VncState *vs = container_of(notifier, VncState, mouse_mode_notifier);
int absolute = qemu_input_is_absolute();
if (vnc_has_feature(vs, VNC_FEATURE_POINTER_TYPE_CHANGE) && vs->absolute != absolute) {
vnc_write_u8(vs, 0);
... | static void check_pointer_type_change(Notifier *notifier, void *data)
{
VncState *vs = container_of(notifier, VncState, mouse_mode_notifier);
int absolute = qemu_input_is_absolute();
if (vnc_has_feature(vs, VNC_FEATURE_POINTER_TYPE_CHANGE) && vs->absolute != absolute) {
vnc_write_u8(vs, 0);
... | CVE-2017-2633 | CWE-125 | An out-of-bounds memory access issue was found in Quick Emulator (QEMU) before 1.7.2 in the VNC display driver. This flaw could occur while refreshing the VNC display surface area in the 'vnc_refresh_server_surface'. A user inside a guest could use this flaw to crash the QEMU process. | https://git.qemu.org/?p=qemu.git;a=commitdiff;h=bea60dd7679364493a0d7f5b54316c767cf894ef | ui/vnc: fix potential memory corruption issues
this patch makes the VNC server work correctly if the
server surface and the guest surface have different sizes.
Basically the server surface is adjusted to not exceed VNC_MAX_WIDTH
x VNC_MAX_HEIGHT and additionally the width is rounded up to multiple of
VNC_DIRTY_PIXELS... | null | null | null |
int av_reallocp(void *ptr, size_t size)
{
void **ptrptr = ptr;
void *ret;
ret = av_realloc(*ptrptr, size);
if (!ret) {
return AVERROR(ENOMEM);
*ptrptr = ret; | int av_reallocp(void *ptr, size_t size)
{
void **ptrptr = ptr;
void *ret;
if (!size) {
av_freep(ptr);
return 0;
}
ret = av_realloc(*ptrptr, size);
if (!ret) {
av_freep(ptr);
return AVERROR(ENOMEM);
}
*ptrptr = ret;
return 0;
} | null | null | null | FFmpeg/commit/67e285ceca1cb602a5ab87010b30d904527924fe | mem: Handle av_reallocp(..., 0) properly
Previously this did a double free (and returned an error).
Reported-by: Justin Ruggles
Signed-off-by: Martin Storsjö <martin@martin.st> | ./ffmpeg/libavutil/mem.c | c | 2013-09-20T11:02:41Z |
int nfc_start_poll(struct nfc_dev *dev, u32 im_protocols, u32 tm_protocols)
{
int rc;
pr_debug("dev_name %s initiator protocols 0x%x target protocols 0x%x\n",
dev_name(&dev->dev), im_protocols, tm_protocols);
if (!im_protocols && !tm_protocols)
return -EINVAL;
device_lock(&dev->dev);
if (!device_is_regist... | int nfc_start_poll(struct nfc_dev *dev, u32 im_protocols, u32 tm_protocols)
{
int rc;
pr_debug("dev_name %s initiator protocols 0x%x target protocols 0x%x\n",
dev_name(&dev->dev), im_protocols, tm_protocols);
if (!im_protocols && !tm_protocols)
return -EINVAL;
device_lock(&dev->dev);
if (dev->shutting_dow... | CVE-2022-1974 | CWE-416 | A use-after-free flaw was found in the Linux kernel's NFC core functionality due to a race condition between kobject creation and delete. This vulnerability allows a local attacker with CAP_NET_ADMIN privilege to leak kernel information. | https://github.com/torvalds/linux/commit/da5c0f119203ad9728920456a0f52a6d850c01cd | nfc: replace improper check device_is_registered() in netlink related functions
The device_is_registered() in nfc core is used to check whether
nfc device is registered in netlink related functions such as
nfc_fw_download(), nfc_dev_up() and so on. Although device_is_registered()
is protected by device_lock, there is ... | null | null | 2022-04-29T12:45:50Z |
enum ImapAuthRes imap_auth_cram_md5(struct ImapData *idata, const char *method)
{
char ibuf[LONG_STRING * 2], obuf[LONG_STRING];
unsigned char hmac_response[MD5_DIGEST_LEN];
int len;
int rc;
if (!mutt_bit_isset(idata->capabilities, ACRAM_MD5))
return IMAP_AUTH_UNAVAIL;
mutt_message(_("Authenticating (... | enum ImapAuthRes imap_auth_cram_md5(struct ImapData *idata, const char *method)
{
char ibuf[LONG_STRING * 2], obuf[LONG_STRING];
unsigned char hmac_response[MD5_DIGEST_LEN];
int len;
int rc;
if (!mutt_bit_isset(idata->capabilities, ACRAM_MD5))
return IMAP_AUTH_UNAVAIL;
mutt_message(_("Authenticating (... | null | CWE-120, CWE-119, CWE-787 | null | https://github.com/neomutt/neomutt/commit/6f163e07ae68654d7ac5268cbb7565f6df79ad85 | Check outbuf length in mutt_to_base64()
The obuf can be overflowed in auth_cram.c, and possibly auth_gss.c.
Thanks to Jeriko One for the bug report. | null | null | 2018-07-13T21:25:28Z |
private boolean startActivityForAttachedApplicationIfNeeded(ActivityRecord r,
WindowProcessController app, ActivityRecord top) {
if (r.finishing || !r.okToShowLocked() || !r.visibleIgnoringKeyguard || r.app != null
|| app.mUid != r.info.applicationInfo.uid || !app.mName.equals(r.proc... | private boolean startActivityForAttachedApplicationIfNeeded(ActivityRecord r,
WindowProcessController app, ActivityRecord top) {
if (r.finishing || !r.okToShowLocked() || !r.visibleIgnoringKeyguard || r.app != null
|| app.mUid != r.info.applicationInfo.uid || !app.mName.equals(r.proc... | null | null | null | https://github.com/LineageOS/android_frameworks_base/commit/8b7e0c52e883475bd78a4bd1e0ad05c2f3941704 | [RESTRICT AUTOMERGE] Do not resume activity if behind a translucent task
The top-focusable activity resides in the RESUMED state while the app
process is newly created and attached. The behavior may enable UI
hijacking attacks against apps implementing authentication.
This CL disallows the system to resume the activi... | services/core/java/com/android/server/wm/RootWindowContainer.java | java | 2022-03-07T08:47:21Z |
function getFestivalCmdWithArgs(fields) {
var text = fields.textToSpeech,
language = fields.language,
cmd = 'echo "' + text + '" | festival' + ' --tts --heap 1000000 --language ' + language;
return cmd;
} | function getFestivalCmdWithArgs(fields) {
var text = fields.textToSpeech,
language = fields.language;
return [{
cmd: 'echo',
args: [
text
]
},{
cmd: 'festival',
args: [
'--tts',
'--language', language,
'--heap', '1000000'
]
}];
} | CVE-2019-25158 | CWE-78 | A vulnerability has been found in pedroetb tts-api up to 2.1.4 and classified as critical. This vulnerability affects the function onSpeechDone of the file app.js. The manipulation leads to os command injection. Upgrading to version 2.2.0 is able to address this issue. The patch is identified as 29d9c25415911ea2f8b6de2... | https://github.com/pedroetb/tts-api/commit/29d9c25415911ea2f8b6de247cb5c4607d13d434 | Fix command injection vulnerability and other bugs
Change command execution approach, from 'child_process.exec' to
'child_process.spawn', removing the chance to send shell commands to
API. This increase code complexity, but fix a serious problem in return.
Improve logging, showing errors and interactions between chil... | app.js | js | 2019-07-14T16:42:58Z |
public ResponseEntity<Resource> fetch(@PathVariable String key) {
LitemallStorage litemallStorage = litemallStorageService.findByKey(key);
if (key == null) {
ResponseEntity.notFound();
}
String type = litemallStorage.getType();
MediaType mediaType = MediaType.parseMed... | public ResponseEntity<Resource> fetch(@PathVariable String key) {
LitemallStorage litemallStorage = litemallStorageService.findByKey(key);
if (key == null) {
return ResponseEntity.notFound().build();
}
if(key.contains("../")){
return ResponseEntity.badRequest().bu... | CVE-2018-18434 | CWE-22 | An issue was discovered in litemall 0.9.0. Arbitrary file download is possible via ../ directory traversal in linlinjava/litemall/wx/web/WxStorageController.java in the litemall-wx-api component. | https://github.com/linlinjava/litemall/commit/49ab94d0052672d4fb642505d44b94a18abea332 | fix[litemall-wx-api]: 修复文件路径中包含"../"带来的安全问题 | WxStorageController.java | java | 2018-10-17T06:29:00Z |
rsvg_new_switch (void)
{
RsvgNodeGroup *group;
group = g_new (RsvgNodeGroup, 1);
_rsvg_node_init (&group->super);
group->super.draw = _rsvg_node_switch_draw;
group->super.set_atts = rsvg_node_group_set_atts;
return &group->super;
} | rsvg_new_switch (void)
{
RsvgNodeGroup *group;
group = g_new (RsvgNodeGroup, 1);
_rsvg_node_init (&group->super, RSVG_NODE_TYPE_SWITCH);
group->super.draw = _rsvg_node_switch_draw;
group->super.set_atts = rsvg_node_group_set_atts;
return &group->super;
} | CVE-2011-3146 | null | librsvg before 2.34.1 uses the node name to identify the type of node, which allows context-dependent attackers to cause a denial of service (NULL pointer dereference) and possibly execute arbitrary code via a SVG file with a node with the element name starting with "fe," which is misidentified as a RsvgFilterPrimitive... | http://git.gnome.org/browse/librsvg/commit/?id=34c95743ca692ea0e44778e41a7c0a129363de84 | Store node type separately in RsvgNode
The node name (formerly RsvgNode:type) cannot be used to infer
the sub-type of RsvgNode that we're dealing with, since for unknown
elements we put type = node-name. This lead to a (potentially exploitable)
crash e.g. when the element name started with "fe" which tricked
the old c... | null | null | null |
GC_INNER ptr_t GC_alloc_large(size_t lb, int k, unsigned flags)
{
struct hblk * h;
word n_blocks;
ptr_t result;
GC_bool retry = FALSE;
/* Round up to a multiple of a granule. */
lb = (lb + GRANULE_BYTES - 1) & ~(GRANULE_BYTES - 1);
n_blocks = OBJ_SZ_TO_BLOCKS(lb);
if (!GC_is_initializ... | GC_INNER ptr_t GC_alloc_large(size_t lb, int k, unsigned flags)
{
struct hblk * h;
word n_blocks;
ptr_t result;
GC_bool retry = FALSE;
lb = ROUNDUP_GRANULE_SIZE(lb);
n_blocks = OBJ_SZ_TO_BLOCKS_CHECKED(lb);
if (!GC_is_initialized) GC_init();
/* Do our share of marking work */
if... | null | null | null | https://github.com/ivmai/bdwgc/commit/2ea6d85adc5fe07d7e9c5d35f2e5886857338681 | Fix malloc routines to prevent size value wrap-around
(Cherry-pick commit 0b68187 from 'release-7_4' branch.)
See issue #135 on Github.
* allchblk.c (GC_allochblk, GC_allochblk_nth): Use
OBJ_SZ_TO_BLOCKS_CHECKED instead of OBJ_SZ_TO_BLOCKS.
* malloc.c (GC_alloc_large): Likewise.
* alloc.c (GC_expand_hp_inner): Type o... | malloc.c | c | 2016-09-19T21:07:47Z |
static void matroska_merge_packets(AVPacket *out, AVPacket *in)
{
out->data = av_realloc(out->data, out->size+in->size);
memcpy(out->data+out->size, in->data, in->size);
out->size += in->size;
av_destruct_packet(in);
av_free(in);
} | static int matroska_merge_packets(AVPacket *out, AVPacket *in)
{
void *newdata = av_realloc(out->data, out->size+in->size);
if (!newdata)
return AVERROR(ENOMEM);
out->data = newdata;
memcpy(out->data+out->size, in->data, in->size);
out->size += in->size;
av_destruct_packet(in);
av_fr... | null | null | null | FFmpeg/commit/956c901c68eff78288f40e3c8f41ee2fa081d4a8 | Fix several security issues in matroskadec.c (MSVR-11-0080).
Whitespace of the patch cleaned up by Aurel
Some of the issues have been reported by Steve Manzuik / Microsoft Vulnerability Research (MSVR)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> | ./ffmpeg/libavformat/matroskadec.c | c | 2011-07-28T12:59:54Z |
static void do_viewlog(HttpRequest req, HttpResponse res) {
if (is_readonly(req)) {
send_error(req, res, SC_FORBIDDEN, "You do not have sufficient privileges to access this page");
return;
}
do_head(res, "_viewlog", "View log", 100);
if ((Run.flags & Run_L... | static void do_viewlog(HttpRequest req, HttpResponse res) {
if (is_readonly(req)) {
send_error(req, res, SC_FORBIDDEN, "You do not have sufficient privileges to access this page");
return;
}
do_head(res, "_viewlog", "View log", 100);
if ((Run.flags & Run_L... | CVE-2019-11454 | CWE-79 | Persistent cross-site scripting (XSS) in http/cervlet.c in Tildeslash Monit before 5.25.3 allows a remote unauthenticated attacker to introduce arbitrary JavaScript via manipulation of an unsanitized user field of the Authorization header for HTTP Basic Authentication, which is mishandled during an _viewlog operation. | https://bitbucket.org/tildeslash/monit/commit/328f60773057641c4b2075fab9820145e95b728c | Fixed: HTML escape the log file content when viewed via Monit GUI. | cervlet.c | c | 2019-03-04T13:13:42Z |
static void php_do_chown(INTERNAL_FUNCTION_PARAMETERS, int do_lchown) /* {{{ */
{
char *filename;
int filename_len;
zval *user;
uid_t uid;
int ret;
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sz/", &filename, &filename_len, &user) == FAILURE) {
return;
}
if (Z_TYPE_P(user) == IS_LONG) {
uid = (u... | static void php_do_chown(INTERNAL_FUNCTION_PARAMETERS, int do_lchown) /* {{{ */
{
char *filename;
int filename_len;
zval *user;
uid_t uid;
int ret;
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sz/", &filename, &filename_len, &user) == FAILURE) {
return;
}
if (strlen(filename) != filename_len) {
R... | null | null | null | null | - fix #39863, do not accept paths with NULL in them. See http://news.php.net/php.internals/50191, trunk will have the patch later (adding a macro and/or changing (some) APIs. Patch by Rasmus | null | null | null |
func collectAndCallOnce(rxPacket gw.UplinkFrame, callback func(packet models.RXPacket) error) error {
phyKey := hex.EncodeToString(rxPacket.PhyPayload)
key := fmt.Sprintf(CollectKeyTempl, phyKey)
lockKey := fmt.Sprintf(CollectLockKeyTempl, phyKey)
// this way we can set a really low DeduplicationDelay for testing,... | func collectAndCallOnce(rxPacket gw.UplinkFrame, callback func(packet models.RXPacket) error) error {
phyKey := hex.EncodeToString(rxPacket.PhyPayload)
txInfoB, err := proto.Marshal(rxPacket.TxInfo)
if err != nil {
return errors.Wrap(err, "marshal protobuf error")
}
txInfoHEX := hex.EncodeToString(txInfoB)
key... | CVE-2020-28349 | CWE-20 | An inaccurate frame deduplication process in ChirpStack Network Server 3.9.0 allows a malicious gateway to perform uplink Denial of Service via malformed frequency attributes in CollectAndCallOnceCollect in internal/uplink/collect.go. NOTE: the vendor's position is that there are no "guarantees that allowing untrusted ... | https://github.com/brocaar/chirpstack-network-server/commit/f996bb0c6c85281b5658f59ff09db1b4a73db453 | Improve uplink de-duplication.
This removes the de-duplication at the MQTT backend. Some MQTT brokers
provide shared subscription options in which case this additional
de-duplication is not needed.
For MQTT brokers that do not support shared subscriptions, the
collectAndCallOnce function will still filter out duplica... | collect.go | go | 2020-11-09T01:15:00Z |
@Inject(method = "handleSystemMessage", at = @At("HEAD"), cancellable = true)
private void onHandleSystemMessage(Component message, boolean overlay, CallbackInfo info) {
if (message instanceof MutableComponent mutable && message.getContents() instanceof TranslatableContents translatable) {
if (translatable.getKey... | @Inject(method = "handleSystemMessage", at = @At("HEAD"), cancellable = true)
private void onHandleSystemMessage(Component message, boolean overlay, CallbackInfo info) {
if (message instanceof MutableComponent mutable && message.getContents() instanceof TranslatableContents translatable) {
if (translatable.getKey... | null | null | null | https://github.com/Aizistral-Studios/No-Chat-Reports/commit/c95c3281c5feb12de12d8d7828178f6ffc6be650 | Resend message automatically when warning is skipped (#282)
* Resend message when warning is skipped
* Fix the crash
* Instance variable
* Add signing actions
* Hide rejection message when hide
Co-authored-by: Aizistral <VictorShadow-Integral@yandex.ru> | src/main/java/com/aizistral/nochatreports/mixins/client/MixinChatListener.java | java | 2022-11-11T11:23:31Z |
private void processBarcodeValues(BarcodeValues barcodeValues, String group) {
if (barcodeValues.isEmpty()) {
return;
}
Intent newIntent = new Intent(getApplicationContext(), LoyaltyCardEditActivity.class);
Bundle newBundle = new Bundle();
newBundle.putString(LoyaltyC... | private void processBarcodeValues(BarcodeValues barcodeValues, String group) {
if (barcodeValues.isEmpty()) {
throw new IllegalArgumentException("barcodesValues may not be empty");
}
Intent newIntent = new Intent(getApplicationContext(), LoyaltyCardEditActivity.class);
Bundl... | null | null | null | https://github.com/CatimaLoyalty/Android/commit/ea482c6fad25a0cbde99664d3a9919320b26a7c8 | Fix crash on cancelling ScanActivity
Introduced in https://github.com/CatimaLoyalty/Android/pull/1078 | app/src/main/java/protect/card_locker/MainActivity.java | java | 2022-10-16T09:07:40Z |
int for_each_problem_in_dir(const char *path,
uid_t caller_uid,
int (*callback)(struct dump_dir *dd, void *arg),
void *arg)
{
DIR *dp = opendir(path);
if (!dp)
{
/* We don't want to yell if, say, $XDG_CACHE_DIR/abrt/spool doesn'... | int for_each_problem_in_dir(const char *path,
uid_t caller_uid,
int (*callback)(struct dump_dir *dd, void *arg),
void *arg)
{
DIR *dp = opendir(path);
if (!dp)
{
/* We don't want to yell if, say, $XDG_CACHE_DIR/abrt/spool doesn'... | CVE-2015-3150 | CWE-20 | abrt-dbus in Automatic Bug Reporting Tool (ABRT) allows local users to delete or change the ownership of arbitrary files via the problem directory argument to the (1) ChownProblemDir, (2) DeleteElement, or (3) DeleteProblem method. | https://github.com/abrt/abrt/commit/7814554e0827ece778ca88fd90832bd4d05520b1 | dbus: avoid race-conditions in tests for dum dir availability
Florian Weimer <fweimer@redhat.com>
dump_dir_accessible_by_uid() is fundamentally insecure because it
opens up a classic time-of-check-time-of-use race between this
function and and dd_opendir().
Related: #1214745
Signed-off-by: Jakub Filak <... | null | null | 2015-04-24T11:48:32Z |
static SSL_METHOD *ssl23_get_client_method(int ver)
{
#ifndef OPENSSL_NO_SSL2
if (ver == SSL2_VERSION)
return(SSLv2_client_method());
#endif
if (ver == SSL3_VERSION)
return(SSLv3_client_method());
else if (ver == TLS1_VERSION)
return(TLSv1_client_method());
else
return(NULL);
} | static SSL_METHOD *ssl23_get_client_method(int ver)
{
#ifndef OPENSSL_NO_SSL2
if (ver == SSL2_VERSION)
return(SSLv2_client_method());
#endif
#ifndef OPENSSL_NO_SSL3
if (ver == SSL3_VERSION)
return(SSLv3_client_method());
#endif
if (ver == TLS1_VERSION)
return(TLSv1_client_method());
else
return(NULL);
} | CVE-2014-3568 | CWE-310 | OpenSSL before 0.9.8zc, 1.0.0 before 1.0.0o, and 1.0.1 before 1.0.1j does not properly enforce the no-ssl3 build option, which allows remote attackers to bypass intended access restrictions via an SSL 3.0 handshake, related to s23_clnt.c and s23_srvr.c. | https://git.openssl.org/gitweb/?p=openssl.git;a=commit;h=cd332a07503bd9771595de87e768179f81715704 | Fix no-ssl3 configuration option
CVE-2014-3568
Reviewed-by: Emilia Kasper <emilia@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org> | null | null | null |
function clone(array $override_input = [], bool $history = true) {
global $DB, $CFG_GLPI;
if ($DB->isSlave()) {
return false;
}
$new_item = new static();
$input = $this->fields;
foreach ($override_input as $key => $value) {
$input[$key] = $value;
}
$inp... | function clone(array $override_input = [], bool $history = true) {
global $DB, $CFG_GLPI;
if ($DB->isSlave()) {
return false;
}
$new_item = new static();
$input = Toolbox::addslashes_deep($this->fields);
foreach ($override_input as $key => $value) {
$input[$key] = ... | CVE-2020-15108 | CWE-89,CWE-89 | In glpi before 9.5.1, there is a SQL injection for all usages of "Clone" feature. This has been fixed in 9.5.1. | https://github.com/glpi-project/glpi/commit/a4baa64114eb92fd2adf6056a36e0582324414ba | Merge pull request from GHSA-qv6w-68gq-wx2v
CVE-2020-15108
Add test to reproduce error
Add test on calendar duplication | commondbtm.class.php | php | 2020-07-17T21:15:00Z |
@Override
public void flowY(int width, int height, int preferred) {
super.flowX(width, preferred);
for (int x = 0; x < grid.size(); x++) {
List<GuiChildControl> rows = grid.get(x);
for (int y = 0; y < rows.size(); y++) {
GuiChildControl child = rows.get(y);
... | @Override
public void flowY(int width, int height, int preferred) {
super.flowX(width, preferred);
for (int x = 0; x < grid.size(); x++) {
List<GuiChildControl> rows = grid.get(x);
for (int y = 0; y < rows.size(); y++) {
GuiChildControl child = rows.get(y);
... | null | null | null | https://github.com/CreativeMD/LittleTiles/commit/3b3ea0e97f3ad65c1c061a0aca8b345e55803fb4 | Fixed dragging not working
Fixed outdated scale code
Fixed crash when iterating
Fixed not setting child controls dimensions | src/main/java/team/creative/littletiles/common/gui/signal/GuiSignalController.java | java | 2023-01-17T18:58:59Z |
_fr_window_ask_overwrite_dialog (OverwriteData *odata)
{
if ((odata->edata->overwrite == FR_OVERWRITE_ASK) && (odata->current_file != NULL)) {
const char *base_name;
GFile *destination;
base_name = _g_path_get_relative_basename ((char *) odata->current_file->data, odata->edata->base_dir, odata->edata->junk... | _fr_window_ask_overwrite_dialog (OverwriteData *odata)
{
gboolean perform_extraction = TRUE;
if ((odata->edata->overwrite == FR_OVERWRITE_ASK) && (odata->current_file != NULL)) {
const char *base_name;
GFile *destination;
base_name = _g_path_get_relative_basename_safe ((char *) odata->current_file->data,... | CVE-2013-4668 | CWE-22 | Directory traversal vulnerability in File Roller 3.6.x before 3.6.4, 3.8.x before 3.8.3, and 3.9.x before 3.9.3, when libarchive is used, allows remote attackers to create arbitrary files via a crafted archive that is not properly handled in a "Keep directory structure" action, related to fr-archive-libarchive.c and fr... | https://git.gnome.org/browse/file-roller/commit/?id=b147281293a8307808475e102a14857055f81631 | libarchive: sanitize filenames before extracting | null | null | 2013-05-27T19:18:21Z |
int
snmp_engine_get(snmp_header_t *header, snmp_varbind_t *varbinds, uint32_t varbinds_length)
{
snmp_mib_resource_t *resource;
uint32_t i;
for(i = 0; i < varbinds_length; i++) {
resource = snmp_mib_find(varbinds[i].oid);
if(!resource) {
switch(header->version) {
case SNMP_VERSION_1:
... | static inline int
snmp_engine_get(snmp_header_t *header, snmp_varbind_t *varbinds)
{
snmp_mib_resource_t *resource;
uint8_t i;
i = 0;
while(varbinds[i].value_type != BER_DATA_TYPE_EOC && i < SNMP_MAX_NR_VALUES) {
resource = snmp_mib_find(&varbinds[i].oid);
if(!resource) {
switch(header->version) ... | null | null | null | https://github.com/contiki-ng/contiki-ng/commit/12c824386ab60de757de5001974d73b32e19ad71 | Refactored SNMP engine after vulnerabilities | os/net/app-layer/snmp/snmp-engine.c | c | 2020-09-08T19:09:31Z |
elseif ( $columns['TITLE'] )
{
$id_new = DBSeqNextID( 'school_marking_periods_marking_period_id_seq' );
$sql = "INSERT INTO SCHOOL_MARKING_PERIODS ";
$fields = "MARKING_PERIOD_ID,MP,SYEAR,SCHOOL_ID,";
$values = "'" . $id_new . "','" . $_REQUEST['mp_term'] . "','" . UserSyear() . "','" . UserSchool() . ... | elseif ( $columns['TITLE'] )
{
$id_new = DBSeqNextID( 'school_marking_periods_marking_period_id_seq' );
$sql = "INSERT INTO SCHOOL_MARKING_PERIODS ";
$fields = "MARKING_PERIOD_ID,MP,SYEAR,SCHOOL_ID,";
$values = "'" . $id_new . "','" . $_REQUEST['mp_term'] . "','" . UserSyear() . "','" . UserSchool() . ... | CVE-2022-2067 | CWE-89,CWE-89 | SQL Injection in GitHub repository francoisjacquet/rosariosis prior to 9.0. | https://github.com/francoisjacquet/rosariosis/commit/15d5e8700d538935b5c411b2a1e25bcf7e16c47c | Fix SQL injection escape DB identifier | RegistrationSave.fnc.php | php | 2022-06-13T13:15:00Z |
void deliverOnFlushComplete(int requestCode) throws Exception; | @Override
public void deliverOnFlushComplete(int requestCode) throws PendingIntent.CanceledException {
BroadcastOptions options = BroadcastOptions.makeBasic();
options.setDontSendToRestrictedApps(true);
options.setPendingIntentBackgroundActivityLaunchAllowed(false);
... | null | null | null | https://github.com/PixelExperience/frameworks_base/commit/0924de4965f93f5a880754bcc2819a890fd45f0e | Fix bypass BAL via LocationManager.requestFlush
Bug: 235823542
Test: atest LocationProviderManagerTest and manual tests
Change-Id: I2a0fa7b99c3ad5ae839d8018ec70cb5c26e33240
(cherry picked from commit 7d43a5bcb2e13dcf118364a574f8c5610606e36e)
Merged-In: I2a0fa7b99c3ad5ae839d8018ec70cb5c26e33240 | services/core/java/com/android/server/location/provider/LocationProviderManager.java | java | 2023-01-26T18:31:45Z |
public function store($zdb)
{
$data = array(
'short_label' => $this->short,
'long_label' => $this->long
);
try {
if ($this->id !== null && $this->id > 0) {
$update = $zdb->update(self::TABLE);
$update->set($data)->where... | public function store($zdb)
{
$data = array(
'short_label' => strip_tags($this->short),
'long_label' => strip_tags($this->long)
);
try {
if ($this->id !== null && $this->id > 0) {
$update = $zdb->update(self::TABLE);
$u... | CVE-2021-41261 | CWE-79 | Galette is a membership management web application built for non profit organizations and released under GPLv3. Versions prior to 0.9.6 are subject to stored cross site scripting attacks via the preferences footer. The preference footer can only be altered by a site admin. This issue has been resolved in the 0.9.6 rele... | https://github.com/galette/galette/commit/0d55bc7f420470e0dbca91ebe7899c592905cbc5 | Fix XSS, prevent their storage
Use HTML purifier lib to sanitize preferences footer | Title.php | php | 2021-12-16T19:15:00Z |
expr_context_name(expr_context_ty ctx)
{
switch (ctx) {
case Load:
return "Load";
case Store:
return "Store";
case Del:
return "Del";
case AugLoad:
return "AugLoad";
case AugStore:
return "AugStore";
case Param:
return "Param";
default:
... | expr_context_name(expr_context_ty ctx)
{
switch (ctx) {
case Load:
return "Load";
case Store:
return "Store";
case Del:
return "Del";
case AugLoad:
return "AugLoad";
case AugStore:
return "AugStore";
case Param:
return "Param";
default:
... | CVE-2019-19274 | CWE-125 | typed_ast 1.3.0 and 1.3.1 has a handle_keywordonly_args out-of-bounds read. An attacker with the ability to cause a Python interpreter to parse Python source (but not necessarily execute it) may be able to crash the interpreter process. This could be a concern, for example, in a web-based service that parses (but does ... | https://github.com/python/typed_ast/commit/156afcb26c198e162504a57caddfe0acd9ed7dce | Fully incorporate the code from Python 3.7.2 (#78)
This is a full port, following the recipe in update_process.md. I've also tried to keep the recipe up to date and improved the automation (see tools/script). I haven't cleaned up the commits. As of #77 there are a few tests that sanity-check this (though it's far from... | parsetok.c | c | 2019-11-26T15:15:00Z |
def to_python(self, data):
"""
Based on Django's ImageField
"""
f = super().to_python(data)
if f is None:
return None
from PIL import Image
# We need to get a file object for Pillow. We might have a path or we might
# have to read the data in... | def to_python(self, data):
"""
Based on Django's ImageField
"""
f = super().to_python(data)
if f is None:
return None
from PIL import Image
# We need to get a file object for Pillow. We might have a path or we might
# have to read the data in... | null | null | null | https://github.com/pretix/pretix/commit/8583bfb7d97263e9e923ad5d7f123ca1cadc8f2e | [SECURITY] Do not allow Pillow to parse EPS files | src/pretix/base/forms/questions.py | py | 2023-09-11T16:57:08Z |
static int jp2_colr_getdata(jp2_box_t *box, jas_stream_t *in)
{
jp2_colr_t *colr = &box->data.colr;
colr->csid = 0;
colr->iccp = 0;
colr->iccplen = 0;
if (jp2_getuint8(in, &colr->method) || jp2_getuint8(in, &colr->pri) ||
jp2_getuint8(in, &colr->approx)) {
return -1;
}
switch (colr->method) {
case JP2_COL... | static int jp2_colr_getdata(jp2_box_t *box, jas_stream_t *in)
{
jp2_colr_t *colr = &box->data.colr;
colr->csid = 0;
colr->iccp = 0;
colr->iccplen = 0;
if (jp2_getuint8(in, &colr->method) || jp2_getuint8(in, &colr->pri) ||
jp2_getuint8(in, &colr->approx)) {
return -1;
}
switch (colr->method) {
case JP2_COL... | CVE-2008-3520 | CWE-189 | Multiple integer overflows in JasPer 1.900.1 might allow context-dependent attackers to have an unknown impact via a crafted image file, related to integer multiplication for memory allocation. | https://github.com/mdadams/jasper/commit/3c55b399c36ef46befcb21e4ebc4799367f89684 | At many places in the code, jas_malloc or jas_recalloc was being
invoked with the size argument being computed in a manner that would not
allow integer overflow to be detected. Now, these places in the code
have been modified to use special-purpose memory allocation functions
(e.g., jas_alloc2, jas_alloc3, jas_realloc... | null | null | 2016-10-15T17:42:19Z |
PHP_FUNCTION(imagepsencodefont)
{
zval *fnt;
char *enc, **enc_vector;
int enc_len, *f_ind;
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rs", &fnt, &enc, &enc_len) == FAILURE) {
return;
}
ZEND_FETCH_RESOURCE(f_ind, int *, &fnt, -1, "Type 1 font", le_ps_font);
if ((enc_vector = T1_LoadEncoding(enc)) ... | PHP_FUNCTION(imagepsencodefont)
{
zval *fnt;
char *enc, **enc_vector;
int enc_len, *f_ind;
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rp", &fnt, &enc, &enc_len) == FAILURE) {
return;
}
ZEND_FETCH_RESOURCE(f_ind, int *, &fnt, -1, "Type 1 font", le_ps_font);
if ((enc_vector = T1_LoadEncoding(enc)) ... | CVE-2015-3411 | CWE-20 | PHP before 5.4.40, 5.5.x before 5.5.24, and 5.6.x before 5.6.8 does not ensure that pathnames lack %00 sequences, which might allow remote attackers to read or write to arbitrary files via crafted input to an application that calls (1) a DOMDocument load method, (2) the xmlwriter_open_uri function, (3) the finfo_file f... | http://git.php.net/?p=php-src.git;a=commitdiff;h=52b93f0cfd3cba7ff98cc5198df6ca4f23865f80 | Fixed bug #69353 (Missing null byte checks for paths in various PHP extensions) | null | null | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.