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 mp3_write_packet(AVFormatContext *s, AVPacket *pkt)
{
MP3Context *mp3 = s->priv_data;
if (pkt->stream_index == mp3->audio_stream_idx) {
if (mp3->pics_to_write) {
AVPacketList *pktl = av_mallocz(sizeof(*pktl));
if (!pktl)
return AVERROR(ENOM... | static int mp3_write_packet(AVFormatContext *s, AVPacket *pkt)
{
MP3Context *mp3 = s->priv_data;
if (pkt->stream_index == mp3->audio_stream_idx) {
if (mp3->pics_to_write) {
AVPacketList *pktl = av_mallocz(sizeof(*pktl));
int ret;
if (!pktl)
... | null | null | null | FFmpeg/commit/d003a0cd2e587a47627fd328f9fc5a484adc29f2 | avformat/mp3enc: use av_copy_packet()
Fixes double free
Fixes Ticket3476
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> | ./ffmpeg/libavformat/mp3enc.c | c | 2014-03-22T00:26:48Z |
function is_protected_meta( $meta_key, $meta_type = '' ) {
$protected = ( '_' === $meta_key[0] );
/**
* Filters whether a meta key is considered protected.
*
* @since 3.2.0
*
* @param bool $protected Whether the key is considered protected.
* @param string $meta_key Metadata key.
* @param string $me... | function is_protected_meta( $meta_key, $meta_type = '' ) {
$sanitized_key = preg_replace( "/[^\x20-\x7E\p{L}]/", '', $meta_key );
$protected = strlen( $sanitized_key ) > 0 && ( '_' === $sanitized_key[0] );
/**
* Filters whether a meta key is considered protected.
*
* @since 3.2.0
*
* @param bool $pr... | CVE-2020-28039 | NVD-CWE-noinfo | is_protected_meta in wp-includes/meta.php in WordPress before 5.5.2 allows arbitrary file deletion because it does not properly determine whether a meta key is considered protected. | https://github.com/WordPress/wordpress-develop/commit/d5ddd6d4be1bc9fd16b7796842e6fb26315705ad | Meta: Sanitize meta key before checking protection status.
Props zieladam, peterwilsoncc, xknown, whyisjake.
Merges [49377,49381] to trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@49387 602fd350-edb4-49c9-b593-d223f7449a82 | meta.php | php | 2020-11-02T21:15:00Z |
def initialize(image_path, colors=16, depth=8)
output = `convert #{image_path} -resize 400x400 -format %c -dither None -quantize YIQ -colors #{colors} -depth #{depth} histogram:info:-`
@lines = output.lines.sort.reverse.map(&:strip).reject(&:empty?)
end | def initialize(image_path, colors=16, depth=8)
output = `convert #{image_path.shellescape} -resize 400x400 -format %c -dither None -quantize YIQ -colors #{colors.to_i} -depth #{depth.to_i} histogram:info:-`
@lines = output.lines.sort.reverse.map(&:strip).reject(&:empty?)
end | CVE-2015-7541 | CWE-77 | The initialize method in the Histogram class in lib/colorscore/histogram.rb in the colorscore gem before 0.0.5 for Ruby allows context-dependent attackers to execute arbitrary code via shell metacharacters in the (1) image_path, (2) colors, or (3) depth variable. | https://github.com/quadule/colorscore/commit/570b5e854cecddd44d2047c44126aed951b61718 | Fix CVE-2015-7541
Avoid passsing possible user input directly into the shell. Instead
quote the `image_path` value before calling the `convert` command.
See here http://rubysec.com/advisories/CVE-2015-7541/ for more
information. | histogram.rb | rb | 2016-01-08T21:59:00Z |
base::string16 GetAppForProtocolUsingRegistry(const GURL& url) {
base::string16 command_to_launch;
base::string16 cmd_key_path = base::ASCIIToUTF16(url.scheme());
base::win::RegKey cmd_key_name(HKEY_CLASSES_ROOT, cmd_key_path.c_str(),
KEY_READ);
if (cmd_key_name.ReadValue(NU... | base::string16 GetAppForProtocolUsingRegistry(const GURL& url) {
const base::string16 url_scheme = base::ASCIIToUTF16(url.scheme());
if (!IsValidCustomProtocol(url_scheme))
return base::string16();
base::string16 command_to_launch;
base::win::RegKey cmd_key_name(HKEY_CLASSES_ROOT, url_scheme.c_str(),
... | CVE-2018-18354 | CWE-20 | Insufficient validate of external protocols in Shell Integration in Google Chrome on Windows prior to 71.0.3578.80 allowed a remote attacker to launch external programs via a crafted HTML page. | https://github.com/chromium/chromium/commit/d19a75fc26fd0ab1ce79ef3d1c1c9b3cc1fbd098 | Validate external protocols before launching on Windows
Bug: 889459
Change-Id: Id33ca6444bff1e6dd71b6000823cf6fec09746ef
Reviewed-on: https://chromium-review.googlesource.com/c/1256208
Reviewed-by: Greg Thompson <grt@chromium.org>
Commit-Queue: Mustafa Emre Acer <meacer@chromium.org>
Cr-Commit-Position: refs/heads/mas... | chrome/browser/shell_integration_win.cc | cc | 2018-10-08T18:15:14Z |
void Com_WriteConfig_f( void ) {
char filename[MAX_QPATH];
if ( Cmd_Argc() != 2 ) {
Com_Printf( "Usage: writeconfig <filename>\n" );
return;
}
Q_strncpyz( filename, Cmd_Argv(1), sizeof( filename ) );
COM_DefaultExtension( filename, sizeof( filename ), ".cfg" );
Com_Printf( "Writing %s.\n", filename );
Com_... | void Com_WriteConfig_f( void ) {
char filename[MAX_QPATH];
if ( Cmd_Argc() != 2 ) {
Com_Printf( "Usage: writeconfig <filename>\n" );
return;
}
if (!COM_CompareExtension(filename, ".cfg"))
{
Com_Printf("Com_WriteConfig_f: Only the \".cfg\" extension is supported by this command!\n");
return;
}
Q_strnc... | null | null | null | https://github.com/ioquake/ioq3/commit/b173ac05993f634a42be3d3535e1b158de0c3372 | Merge some file writing extension checks from OpenJK.
Thanks Ensiform.
https://github.com/JACoders/OpenJK/commit/05928a57f9e4aae15a3bd0
https://github.com/JACoders/OpenJK/commit/ef124fd0fc48af164581176 | code/qcommon/common.c | c | 2017-03-14T03:44:47Z |
long keyctl_set_reqkey_keyring(int reqkey_defl)
{
struct cred *new;
int ret, old_setting;
old_setting = current_cred_xxx(jit_keyring);
if (reqkey_defl == KEY_REQKEY_DEFL_NO_CHANGE)
return old_setting;
new = prepare_creds();
if (!new)
return -ENOMEM;
switch (reqkey_defl) {
case KEY_REQKEY_DEFL_THREAD_KEY... | long keyctl_set_reqkey_keyring(int reqkey_defl)
{
struct cred *new;
int ret, old_setting;
old_setting = current_cred_xxx(jit_keyring);
if (reqkey_defl == KEY_REQKEY_DEFL_NO_CHANGE)
return old_setting;
new = prepare_creds();
if (!new)
return -ENOMEM;
switch (reqkey_defl) {
case KEY_REQKEY_DEFL_THREAD_KEY... | CVE-2017-7472 | CWE-404 | The KEYS subsystem in the Linux kernel before 4.10.13 allows local users to cause a denial of service (memory consumption) via a series of KEY_REQKEY_DEFL_THREAD_KEYRING keyctl_set_reqkey_keyring calls. | https://github.com/torvalds/linux/commit/c9f838d104fed6f2f61d68164712e3204bf5271b | KEYS: fix keyctl_set_reqkey_keyring() to not leak thread keyrings
This fixes CVE-2017-7472.
Running the following program as an unprivileged user exhausts kernel
memory by leaking thread keyrings:
#include <keyutils.h>
int main()
{
for (;;)
keyctl_set_reqkey_keyring(KEY_REQKEY_DEFL_THREAD_KEYRING);
}
Fix ... | process_keys.c | c | 2017-04-18T14:31:09Z |
int
obj2ast_arguments(PyObject* obj, arguments_ty* out, PyArena* arena)
{
PyObject* tmp = NULL;
asdl_seq* args;
arg_ty vararg;
asdl_seq* kwonlyargs;
asdl_seq* kw_defaults;
arg_ty kwarg;
asdl_seq* defaults;
if (_PyObject_HasAttrId(obj, &PyId_args)) {
int res;
Py_ssize_t l... | int
obj2ast_arguments(PyObject* obj, arguments_ty* out, PyArena* arena)
{
PyObject* tmp = NULL;
asdl_seq* args;
arg_ty vararg;
asdl_seq* kwonlyargs;
asdl_seq* kw_defaults;
arg_ty kwarg;
asdl_seq* defaults;
if (lookup_attr_id(obj, &PyId_args, &tmp) < 0) {
return 1;
}
if (... | null | null | null | 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... | ast3/Python/Python-ast.c | c | 2019-01-23T03:09:26Z |
public static AsciiString of(AsciiString name) {
final AsciiString lowerCased = name.toLowerCase();
final AsciiString cached = map.get(lowerCased);
return cached != null ? cached : lowerCased;
} | public static AsciiString of(CharSequence name) {
if (name instanceof AsciiString) {
return of((AsciiString) name);
}
final String lowerCased = Ascii.toLowerCase(requireNonNull(name, "name"));
final AsciiString cached = map.get(lowerCased);
if (cached != null) {
... | CVE-2019-16771 | CWE-74,CWE-113 | Versions of Armeria 0.85.0 through and including 0.96.0 are vulnerable to HTTP response splitting, which allows remote attackers to inject arbitrary HTTP headers via CRLF sequences when unsanitized data is used to populate the headers of an HTTP response. This vulnerability has been patched in 0.97.0. Potential impacts... | https://github.com/line/armeria/commit/b597f7a865a527a84ee3d6937075cfbb4470ed20 | Merge pull request from GHSA-35fr-h7jr-hh86
Motivation:
An `HttpService` can produce a malformed HTTP response when a user
specified a malformed HTTP header values, such as:
ResponseHeaders.of(HttpStatus.OK
"my-header", "foo\r\nbad-header: bar");
Modification:
- Add strict header value v... | ArmeriaHttpUtil.java | java | 2019-12-06T19:15:00Z |
@Override
public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) {
if (key.startsWith("enable-")) {
String providerName = key.substring(7);
if (PROVIDER_NAMES.contains(providerName)) {
if (sharedPreferences.getBoolean(key, true)) {
... | @Override
public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) {
if (key != null && key.startsWith("enable-")) {
String providerName = key.substring(7);
if (PROVIDER_NAMES.contains(providerName)) {
if (sharedPreferences.getBoolean(key... | null | null | null | https://github.com/TBog/TBLauncher/commit/e1531caedd585dbafd4dca36971f54ef8f3c0d42 | fix "Reset preferences" crash and fix default values | app/src/main/java/rocks/tbog/tblauncher/handler/DataHandler.java | java | 2022-03-03T14:27:52Z |
This function decrypts the plaintext */
PHP_FUNCTION(mdecrypt_generic)
{
zval *mcryptind;
char *data;
int data_len;
php_mcrypt *pm;
char* data_s;
int block_size, data_size;
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rs", &mcryptind, &data, &data_len) == FAILURE) {
return;
}
ZEND_FETCH_RESOURCE... | This function decrypts the plaintext */
PHP_FUNCTION(mdecrypt_generic)
{
zval *mcryptind;
char *data;
int data_len;
php_mcrypt *pm;
char* data_s;
int block_size, data_size;
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rs", &mcryptind, &data, &data_len) == FAILURE) {
return;
}
ZEND_FETCH_RESOURCE(p... | CVE-2016-5769 | CWE-190 | Multiple integer overflows in mcrypt.c in the mcrypt extension in PHP before 5.5.37, 5.6.x before 5.6.23, and 7.x before 7.0.8 allow remote attackers to cause a denial of service (heap-based buffer overflow and application crash) or possibly have unspecified other impact via a crafted length value, related to the (1) m... | http://git.php.net/?p=php-src.git;a=commitdiff;h=6c5211a0cef0cc2854eaa387e0eb036e012904d0 | Fix bug #72455: Heap Overflow due to integer overflows | null | null | null |
@Override
public void processStarted(int port, String host) {
containerHost = host;
containerPort = port;
LOGGER.info("Interpreter container created {}:{}", containerHost, containerPort);
synchronized (dockerStarted) {
dockerStarted.set(true);
dockerStarted.notify();
}
} | @Override
public void processStarted(int port, String host) {
containerHost = host;
containerPort = port;
LOGGER.info("Interpreter container created {}:{}", containerHost, containerPort);
synchronized (dockerStarted) {
dockerStarted.set(true);
dockerStarted.notifyAll();
}
} | null | null | null | https://github.com/apache/zeppelin/commit/af8280685b4dc916521f4a279c64eb455ef52b4d | [ZEPPELIN-5855] Refactor docker plugin and remove powermock (#4519)
* Refactor docker plugin
* prevent infinite loop | zeppelin-plugins/launcher/docker/src/main/java/org/apache/zeppelin/interpreter/launcher/DockerInterpreterProcess.java | java | 2023-02-01T10:16:17Z |
function sharingGroupPopulateOrganisations() {
$('input[id=SharingGroupOrganisations]').val(JSON.stringify(organisations));
$('.orgRow').remove();
var id = 0;
var html = '';
organisations.forEach(function(org) {
html = '<tr id="orgRow' + id + '" class="orgRow">';
html += '<td class="short">' + org.type + '&nbs... | function sharingGroupPopulateOrganisations() {
$('input[id=SharingGroupOrganisations]').val(JSON.stringify(organisations));
$('.orgRow').remove();
var id = 0;
var html = '';
organisations.forEach(function(org) {
html = '<tr id="orgRow' + id + '" class="orgRow">';
html += '<td class="short">' + org.type + '&nbs... | CVE-2017-16802 | CWE-79 | In the sharingGroupPopulateOrganisations function in app/webroot/js/misp.js in MISP 2.4.82, there is XSS via a crafted organisation name that is manually added. | https://github.com/MISP/MISP/commit/a659664447a7b2a383cb9e0f6b43dcb43ec69194 | fix: Fixed a reflected XSS in the sharing group creator tool
- Fixed a reflected XSS in the sharing group editor that requires malicious organisation names
- Low impact due to the following requirements:
- organisation names with malicious org names (JS in the orgname)
- sharing group editor user has to manually ... | misp.js | js | 2017-11-13T16:29:00Z |
gboolean vnc_color_map_set(VncColorMap *map,
guint16 idx,
guint16 red,
guint16 green,
guint16 blue)
{
if (idx >= (map->size + map->offset))
return FALSE;
map->colors[idx - map->offset].red = red;... | gboolean vnc_color_map_set(VncColorMap *map,
guint16 idx,
guint16 red,
guint16 green,
guint16 blue)
{
if (idx < map->offset || idx >= (map->size + map->offset))
return FALSE;
map->colors[idx - ma... | null | null | null | null | Correctly validate color map range indexes
The color map index could wrap around to zero causing negative
array index accesses.
https://bugzilla.gnome.org/show_bug.cgi?id=778050
CVE-2017-5885
Signed-off-by: Daniel P. Berrange <berrange@redhat.com> | null | null | null |
static ssize_t qib_write(struct file *fp, const char __user *data,
size_t count, loff_t *off)
{
const struct qib_cmd __user *ucmd;
struct qib_ctxtdata *rcd;
const void __user *src;
size_t consumed, copy = 0;
struct qib_cmd cmd;
ssize_t ret = 0;
void *dest;
if (count < sizeof(cmd.type)) {
ret = -EINV... | static ssize_t qib_write(struct file *fp, const char __user *data,
size_t count, loff_t *off)
{
const struct qib_cmd __user *ucmd;
struct qib_ctxtdata *rcd;
const void __user *src;
size_t consumed, copy = 0;
struct qib_cmd cmd;
ssize_t ret = 0;
void *dest;
if (WARN_ON_ONCE(!ib_safe_file_access(fp)))
r... | CVE-2016-4565 | CWE-264 | The InfiniBand (aka IB) stack in the Linux kernel before 4.5.3 incorrectly relies on the write system call, which allows local users to cause a denial of service (kernel memory write operation) or possibly have unspecified other impact via a uAPI interface. | https://github.com/torvalds/linux/commit/e6bd18f57aad1a2d1ef40e646d03ed0f2515c9e3 | IB/security: Restrict use of the write() interface
The drivers/infiniband stack uses write() as a replacement for
bi-directional ioctl(). This is not safe. There are ways to
trigger write calls that result in the return structure that
is normally written to user space being shunted off to user
specified kernel memory... | drivers/infiniband/hw/qib/qib_file_ops.c | c | 2016-04-11T01:13:13Z |
DisplaySurface *qemu_create_displaysurface_guestmem(int width, int height,
pixman_format_code_t format,
int linesize, uint64_t addr)
{
DisplaySurface *surface;
hwaddr size;
void *data;
if (linesize ==... | DisplaySurface *qemu_create_displaysurface_guestmem(int width, int height,
pixman_format_code_t format,
int linesize, uint64_t addr)
{
DisplaySurface *surface;
hwaddr size;
void *data;
if (linesize ==... | null | null | null | qemu/commit/f76b84a04b75e98eee56e8dc277564d0fbb99018 | ui/console: fix OVERFLOW_BEFORE_WIDEN
Signed-off-by: Gonglei <arei.gonglei@huawei.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> | ./qemu/ui/console.c | c | 2015-03-11T08:21:00Z |
public function beforeAction($action)
{
// Bypass when not installed for installer
if (empty(Yii::$app->params['installed']) &&
Yii::$app->controller->module != null &&
Yii::$app->controller->module->id == 'installer') {
return true;
}
... | public function beforeAction($action)
{
// Bypass when not installed for installer
if (empty(Yii::$app->params['installed']) &&
Yii::$app->controller->module != null &&
Yii::$app->controller->module->id == 'installer') {
return true;
}
... | CVE-2022-24865 | CWE-863,CWE-200 | HumHub is an Open Source Enterprise Social Network. In affected versions users who are forced to change their password by an administrator may retrieve other users' data. This issue has been resolved by commit `eb83de20`. It is recommended that the HumHub is upgraded to 1.11.0, 1.10.4 or 1.9.4. There are no known worka... | https://github.com/humhub/humhub/commit/eb83de20aaecc559ab77a44a6179646a99607e33 | Fix must change password (#5638)
* Fix must change password
* Update CHANGELOG.md (#5638)
* Improve access validation
* Update CHANGELOG.md
Co-authored-by: Lucas Bartholemy <luke-@users.noreply.github.com> | AccessControl.php | php | 2022-04-20T20:15:00Z |
static Exit_status safe_connect()
{
mysql= mysql_init(NULL);
if (!mysql)
{
error("Failed on mysql_init.");
return ERROR_STOP;
}
#ifdef HAVE_OPENSSL
if (opt_use_ssl)
{
mysql_ssl_set(mysql, opt_ssl_key, opt_ssl_cert, opt_ssl_ca,
opt_ssl_capath, opt_ssl_cipher);
mysql_option... | static Exit_status safe_connect()
{
mysql= mysql_init(NULL);
if (!mysql)
{
error("Failed on mysql_init.");
return ERROR_STOP;
}
SSL_SET_OPTIONS(mysql);
if (opt_plugin_dir && *opt_plugin_dir)
mysql_options(mysql, MYSQL_PLUGIN_DIR, opt_plugin_dir);
if (opt_default_auth && *opt_default_auth)
... | CVE-2015-3152 | CWE-295 | Oracle MySQL before 5.7.3, Oracle MySQL Connector/C (aka libmysqlclient) before 6.1.3, and MariaDB before 5.5.44 use the --ssl option to mean that SSL is optional, which allows man-in-the-middle attackers to spoof servers via a cleartext-downgrade attack, aka a "BACKRONYM" attack. | https://github.com/mysql/mysql-server/commit/3bd5589e1a5a93f9c224badf983cd65c45215390 | WL#6791 : Redefine client --ssl option to imply enforced encryption
# Changed the meaning of the --ssl=1 option of all client binaries
to mean force ssl, not try ssl and fail over to eunecrypted
# Added a new MYSQL_OPT_SSL_ENFORCE mysql_options()
option to specify that an ssl connection is required.
# Added a new macr... | mysqlcheck.c | c | 2013-10-31T09:35:15Z |
public function browse() {
$params = func_get_args();
$this->path = join('/', $params);
// make sure there's a / at the end
if (substr($this->path, -1, 1) != '/')
$this->path .= '/';
//security
// we dont allow back link
if (strpos($this->path, '..')... | public function browse() {
$params = func_get_args();
$this->path = join('/', $params);
// make sure there's a / at the end
if (substr($this->path, -1, 1) != '/')
$this->path .= '/';
//security
// we dont allow back link
if (strpos($this->path, '..')... | CVE-2015-6567 | CWE-20 | Wolf CMS before 0.8.3.1 allows unrestricted file upload and PHP Code Execution because admin/plugin/file_manager/browse/ (aka the filemanager) does not validate the parameter "filename" properly. Exploitation requires a registered user who has access to upload functionality. | https://github.com/wolfcms/wolfcms/commit/2160275b60736f706dfda132c7c46728c5b255fa | Fix #619 and #625 | FileManagerController.php | php | 2017-04-14T16:59:00Z |
static QObject *qmp_output_first(QmpOutputVisitor *qov)
{
QStackEntry *e = QTAILQ_LAST(&qov->stack, QStack);
if (!e) {
return NULL;
}
return e->value;
} | static QObject *qmp_output_first(QmpOutputVisitor *qov)
{
QStackEntry *e = QTAILQ_LAST(&qov->stack, QStack);
if (!e) {
return qnull();
}
return e->value;
} | null | null | null | qemu/commit/6c2f9a15dfc8c18ba94defb0f819109902a817cb | qapi: Make output visitor return qnull() instead of NULL
Before commit 1d10b44, it crashed. Since then, it returns NULL, with
a FIXME comment. The FIXME is valid: code that assumes QObject *
can't be null exists. I'm not aware of a way to feed this problematic
return value to code that actually chokes on null in th... | ./qemu/qapi/qmp-output-visitor.c | c | 2015-09-16T11:06:23Z |
$comments->records[$key]->avatar = $db->selectObject('user_avatar',"user_id='".$record->poster."'");
}
if (empty($this->params['config']['disable_nested_comments'])) $comments->records = self::arrangecomments($comments->records);
// eDebug($sql, true);
// count the unapproved c... | $comments->records[$key]->avatar = $db->selectObject('user_avatar',"user_id='".$record->poster."'");
}
if (empty($this->params['config']['disable_nested_comments'])) $comments->records = self::arrangecomments($comments->records);
// eDebug($sql, true);
// count the unapproved comments
... | CVE-2016-7781 | CWE-89 | SQL injection vulnerability in framework/modules/blog/controllers/blogController.php in Exponent CMS 2.3.9 and earlier allows remote attackers to execute arbitrary SQL commands via the author parameter. | https://github.com/exponentcms/exponent-cms/commit/fdafb5ec97838e4edbd685f587f28d3174ebb3db | iniitial effort to greatly enhance system security (xss, sql inject, file exploit, rce, etc...) | order_statusController.php | php | 2017-03-07T16:59:00Z |
function configure()
{
deskDomain = 'https://' + config.deskDomain + '.freshdesk.com';
deskApiKey = config.deskApiKey;
deskTypes = config.deskTypes || deskTypes;
deskStatus = config.deskStatus || deskStatus;
deskStatusWidth = {};
// Precomputes text widths for custom ticket status
var div = document.... | function configure()
{
deskDomain = 'https://' + config.deskDomain + '.freshdesk.com';
deskApiKey = config.deskApiKey;
deskTypes = config.deskTypes || deskTypes;
deskStatus = config.deskStatus || deskStatus;
deskStatusWidth = {};
// Precomputes text widths for custom ticket status
var div = document.... | CVE-2022-2014 | CWE-94,CWE-94 | Code Injection in GitHub repository jgraph/drawio prior to 19.0.2. | https://github.com/jgraph/drawio/commit/3d3f819d7a04da7d53b37cc0ca4269c157ba2825 | 19.0.2 release | src/main/webapp/plugins/tickets.js | js | 2022-06-07T10:01:30Z |
static int paf_video_decode(AVCodecContext *avctx, void *data,
int *got_frame, AVPacket *pkt)
{
PAFVideoDecContext *c = avctx->priv_data;
uint8_t code, *dst, *end;
int i, frame, ret;
if (pkt->size < 2)
return AVERROR_INVALIDDATA;
bytestream2_init(&c->gb, pkt->data... | static int paf_video_decode(AVCodecContext *avctx, void *data,
int *got_frame, AVPacket *pkt)
{
PAFVideoDecContext *c = avctx->priv_data;
uint8_t code, *dst, *end;
int i, frame, ret;
if (pkt->size < 2)
return AVERROR_INVALIDDATA;
bytestream2_init(&c->gb, pkt->data... | null | null | null | FFmpeg/commit/c4360559ee2a6c8c624f24fc7e2a1cf00972ba68 | avcodec/pafvideo: Fix assertion failure
Fixes: 2100/clusterfuzz-testcase-minimized-4522961547558912
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> | ./ffmpeg/libavcodec/pafvideo.c | c | 2017-06-06T14:21:37Z |
static void compute_pkt_fields2(AVStream *st, AVPacket *pkt){
int b_frames = FFMAX(st->codec.has_b_frames, st->codec.max_b_frames);
int num, den, frame_size;
if(pkt->pts != AV_NOPTS_VALUE)
pkt->pts = av_rescale(pkt->pts, st->time_base.den, AV_TIME_BASE * (int64_t)st->time_base.num)... | static int compute_pkt_fields2(AVStream *st, AVPacket *pkt){
int b_frames = FFMAX(st->codec.has_b_frames, st->codec.max_b_frames);
int num, den, frame_size;
if(pkt->pts != AV_NOPTS_VALUE)
pkt->pts = av_rescale(pkt->pts, st->time_base.den, AV_TIME_BASE * (int64_t)st->time_base.num);... | null | null | null | FFmpeg/commit/5edea431d0616737e5a5f58cefc07ba5b2e0875f | some sanity checks on what is muxed, invalid timestamps in mpeg are very common and lead to strange errors in the mpeg muxer otherwise
Originally committed as revision 3752 to svn://svn.ffmpeg.org/ffmpeg/trunk | ./ffmpeg/libavformat/utils.c | c | 2004-12-14T16:19:26Z |
private void resumeMission() {
if (mission.canParticipate(robot) && robot.isFit()) {
mission.performMission(robot);
}
} | private boolean resumeMission() {
if (mission.canParticipate(robot) && robot.isFit()) {
mission.performMission(robot);
return true;
}
return false;
} | null | null | null | https://github.com/mars-sim/mars-sim/commit/a852083faba7e9f9e5bd5e6fcb3fab66fdc9fe75 | Further investigating bot mind stackoverflow
r6984
2022-07-19
Note 1: Add a log statement to investigate why time is not
consumed in takeAction() in BotMind.
Note 2: May need to calculate new timeLeft in walkingPhase() in
WalkSettlementInterior.
1. Further clean up takeAction() in BotMind.
- Avoid double calli... | mars-sim-core/src/main/java/org/mars_sim/msp/core/robot/ai/BotMind.java | java | 2022-07-19T17:37:16Z |
static int local_link(FsContext *ctx, V9fsPath *oldpath,
V9fsPath *dirpath, const char *name)
{
char *odirpath = g_path_get_dirname(oldpath->data);
char *oname = g_path_get_basename(oldpath->data);
int ret = -1;
int odirfd, ndirfd;
odirfd = local_opendir_nofollow(ctx, odirpath... | static int local_link(FsContext *ctx, V9fsPath *oldpath,
V9fsPath *dirpath, const char *name)
{
char *odirpath = g_path_get_dirname(oldpath->data);
char *oname = g_path_get_basename(oldpath->data);
int ret = -1;
int odirfd, ndirfd;
if (ctx->export_flags & V9FS_SM_MAPPED_FILE &... | CVE-2017-7493 | CWE-732 | Quick Emulator (Qemu) built with the VirtFS, host directory sharing via Plan 9 File System(9pfs) support, is vulnerable to an improper access control issue. It could occur while accessing virtfs metadata files in mapped-file security mode. A guest user could use this flaw to escalate their privileges inside guest. | http://git.qemu.org/?p=qemu.git;a=commitdiff;h=7a95434e0ca8a037fd8aa1a2e2461f92585eb77b | 9pfs: local: forbid client access to metadata (CVE-2017-7493)
When using the mapped-file security mode, we shouldn't let the client mess
with the metadata. The current code already tries to hide the metadata dir
from the client by skipping it in local_readdir(). But the client can still
access or modify it through sev... | null | null | null |
@Nonnull
public boolean signUp(@Nonnull final String userUrn, @Nonnull final String fullName, @Nonnull final String email,
@Nonnull final String title, @Nonnull final String password, @Nonnull final String inviteToken) {
Objects.requireNonNull(userUrn, "userUrn must not be null");
Objects.requireNonNull... | public boolean signUp(@Nonnull final String userUrn, @Nonnull final String fullName, @Nonnull final String email,
@Nonnull final String title, @Nonnull final String password, @Nonnull final String inviteToken) {
Objects.requireNonNull(userUrn, "userUrn must not be null");
Objects.requireNonNull(fullName, ... | null | null | null | https://github.com/datahub-project/datahub/commit/d13145e32debff221f39208ca30cd4c47328e8be | feat(ingest): aws - support extra args to role config (#6031) | datahub-frontend/app/client/AuthServiceClient.java | java | 2022-09-23T01:26:42Z |
@Inject(at = @At("RETURN"), method = "apply(Ljava/util/List;Lnet/minecraft/server/packs/resources/ResourceManager;Lnet/minecraft/util/profiling/ProfilerFiller;)V")
public void addSplashes(List<String> splashes, ResourceManager resourceManager, ProfilerFiller profiler, CallbackInfo ci) {
if (BotaniaConfig.client().sp... | @Inject(at = @At("RETURN"), method = "apply(Ljava/util/List;Lnet/minecraft/server/packs/resources/ResourceManager;Lnet/minecraft/util/profiling/ProfilerFiller;)V")
public void addSplashes(List<String> splashes, ResourceManager resourceManager, ProfilerFiller profiler, CallbackInfo ci) {
if (BotaniaConfig.client() !=... | null | null | null | https://github.com/VazkiiMods/Botania/commit/390cb298399e9b80850a478cfef68ded41d904bb | Fix bucket fluid lookup, closes #3918 | Common/src/main/java/vazkii/botania/mixin/client/MixinSplashManager.java | java | 2022-02-03T12:26:22Z |
static int seticcspace(i_ctx_t * i_ctx_p, ref *r, int *stage, int *cont, int CIESubst)
{
os_ptr op = osp;
ref ICCdict, *tempref, *altref=NULL, *nocie = NULL;
int components, code;
float range[8];
code = dict_find_string(systemdict, "NOCIE", &nocie);
if (code > 0) {
if (!r_has_type(n... | static int seticcspace(i_ctx_t * i_ctx_p, ref *r, int *stage, int *cont, int CIESubst)
{
os_ptr op = osp;
ref ICCdict, *tempref, *altref=NULL, *nocie = NULL;
int components, code;
float range[8];
code = dict_find_string(systemdict, "NOCIE", &nocie);
if (code > 0) {
if (!r_has_type(n... | CVE-2018-19476 | CWE-704 | psi/zicc.c in Artifex Ghostscript before 9.26 allows remote attackers to bypass intended access restrictions because of a setcolorspace type confusion. | http://git.ghostscript.com/?p=ghostpdl.git;a=commit;h=548bb434e81dadcc9f71adf891a3ef5bea8e2b4e | PS interpreter - add some type checking
These were 'probably' safe anyway, since they mostly treat the objects
as integers without checking, which at least can't result in a crash.
Nevertheless, we ought to check.
The return from comparedictkeys could be wrong if one of the keys had
a value which was not an array, i... | null | null | null |
Literal *hermes::evalUnaryOperator(
UnaryOperatorInst::OpKind kind,
IRBuilder &builder,
Literal *operand) {
switch (kind) {
case UnaryOperatorInst::OpKind::MinusKind:
// Negate constant integers.
switch (operand->getKind()) {
case ValueKind::LiteralNumberKind:
if (auto *l... | Literal *hermes::evalUnaryOperator(
UnaryOperatorInst::OpKind kind,
IRBuilder &builder,
Literal *operand) {
switch (kind) {
case UnaryOperatorInst::OpKind::MinusKind:
// Negate constant integers.
switch (operand->getKind()) {
case ValueKind::LiteralNumberKind:
if (auto *l... | CVE-2021-24045 | CWE-843 | A type confusion vulnerability could be triggered when resolving the "typeof" unary operator in Facebook Hermes prior to v0.10.0. Note that this is only exploitable if the application using Hermes permits evaluation of untrusted JavaScript. Hence, most React Native applications are not affected. | https://github.com/facebook/hermes/commit/55e1b2343f4deb1a1b5726cfe1e23b2068217ff2 | Handle typeof applied to empty in InstSimplify
Summary:
Do not simplify `typeof` if it is applied to an invalid type. This
handles a case like the one in the added test, where `typeof` is called
on a literal empty in unreachable code.
Reviewed By: kodafb
Differential Revision: D31000173
fbshipit-source-id: 2d7f69cb... | IREval.cpp | cpp | 2021-10-13T18:18:13Z |
static int bpf_convert_filter(struct sock_filter *prog, int len,
struct bpf_prog *new_prog, int *new_len)
{
int new_flen = 0, pass = 0, target, i, stack_off;
struct bpf_insn *new_insn, *first_insn = NULL;
struct sock_filter *fp;
int *addrs = NULL;
u8 bpf_src;
BUILD_BUG_ON(BPF_MEMWORDS * sizeof(u32) > MA... | static int bpf_convert_filter(struct sock_filter *prog, int len,
struct bpf_prog *new_prog, int *new_len)
{
int new_flen = 0, pass = 0, target, i, stack_off;
struct bpf_insn *new_insn, *first_insn = NULL;
struct sock_filter *fp;
int *addrs = NULL;
u8 bpf_src;
BUILD_BUG_ON(BPF_MEMWORDS * sizeof(u32) > MA... | CVE-2018-25020 | CWE-120 | The BPF subsystem in the Linux kernel before 4.17 mishandles situations with a long jump over an instruction sequence where inner instructions require substantial expansions into multiple BPF instructions, leading to an overflow. This affects kernel/bpf/core.c and net/core/filter.c. | https://github.com/torvalds/linux/commit/050fad7c4534c13c8eb1d9c2ba66012e014773cb | bpf: fix truncated jump targets on heavy expansions
Recently during testing, I ran into the following panic:
[ 207.892422] Internal error: Accessing user space memory outside uaccess.h routines: 96000004 [#1] SMP
[ 207.901637] Modules linked in: binfmt_misc [...]
[ 207.966530] CPU: 45 PID: 2256 Comm: test_ve... | core.c | c | 2021-12-08T05:15:00Z |
static inline void gen_neon_mull(TCGv_i64 dest, TCGv a, TCGv b, int size, int u)
{
TCGv_i64 tmp;
switch ((size << 1) | u) {
case 0: gen_helper_neon_mull_s8(dest, a, b); break;
case 1: gen_helper_neon_mull_u8(dest, a, b); break;
case 2: gen_helper_neon_mull_s16(dest, a, b); break;
case 3: gen_hel... | static inline void gen_neon_mull(TCGv_i64 dest, TCGv a, TCGv b, int size, int u)
{
TCGv_i64 tmp;
switch ((size << 1) | u) {
case 0: gen_helper_neon_mull_s8(dest, a, b); break;
case 1: gen_helper_neon_mull_u8(dest, a, b); break;
case 2: gen_helper_neon_mull_s16(dest, a, b); break;
case 3: gen_hel... | null | null | null | qemu/commit/7d2aabe262846ddeda1785d42ff4d7964e8ac1c8 | target-arm: Fix TCG temporary leaks for scalar VMULL
Fix a TCG temporary leak when translating 32-bit scalar VMULL.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> | ./qemu/target-arm/translate.c | c | 2011-03-11T13:32:34Z |
def taxon_search(prefix, tax_levels = TaxonCount::NAME_2_LEVEL.keys, filters = {})
return {} if Rails.env == "test"
prefix = sanitize(prefix)
matching_taxa = []
taxon_ids = []
tax_levels.each do |level|
search_params = {
size: ElasticsearchHelper::MAX_SEARCH_RESULTS,
query: {
... | def taxon_search(query, tax_levels = TaxonCount::NAME_2_LEVEL.keys, filters = {})
return {} if Rails.env == "test"
query = sanitize(query)
# sanitize tax_levels
tax_levels = tax_levels.select { |l| TaxonCount::NAME_2_LEVEL[l] }
matching_taxa = []
taxon_ids = []
tax_levels.each do |level|
... | null | cwe-089 | null | github.com/chanzuckerberg/idseq-web/commit/5e0901a9bd161312cf8bb57004830ac32921f976 | [Taxon Search] Search text on any part of the word and avoid SQL injection. (#2372)
* Search text on any part of the word.
Sanitize tax_levels to avoid SQL injection.
* Rubocop | elasticsearch_helper.rb | rb | 2019-07-01T17:15:27Z |
static int reap_filters(int flush)
{
AVFrame *filtered_frame = NULL;
int i;
for (i = 0; i < nb_output_streams; i++) {
OutputStream *ost = output_streams[i];
OutputFile *of = output_files[ost->file_index];
AVFilterContext *filter;
AVCodecContext *enc = ost->enc_ctx;
... | static int reap_filters(int flush)
{
AVFrame *filtered_frame = NULL;
int i;
for (i = 0; i < nb_output_streams; i++) {
OutputStream *ost = output_streams[i];
OutputFile *of = output_files[ost->file_index];
AVFilterContext *filter;
AVCodecContext *enc = ost->enc_ctx;
... | null | null | null | FFmpeg/commit/4b192ffdbe226461d8a07fd36d655ec13b2c7582 | ffmpeg: Initialize two stack variables.
Avoids reading from uninitialized memory, regression since af1761f7 | ./ffmpeg/ffmpeg.c | c | 2017-03-21T07:03:49Z |
private FlatFileStore buildFlatFileStore(NodeState checkpointedState, CompositeIndexer indexer) throws IOException {
Stopwatch flatFileStoreWatch = Stopwatch.createStarted();
int executionCount = 1;
CompositeException lastException = null;
List<File> previousDownloadDirs = new ArrayList... | private FlatFileStore buildFlatFileStore(NodeState checkpointedState, CompositeIndexer indexer) throws IOException {
Stopwatch flatFileStoreWatch = Stopwatch.createStarted();
int executionCount = 1;
CompositeException lastException = null;
List<File> previousDownloadDirs = new ArrayList... | null | null | null | https://github.com/apache/jackrabbit-oak/commit/c04aff5d970beccd41ff15c1c907f7ea6d0720fb | OAK-9576: Multithreaded download synchronization issues (#383)
* OAK-9576 - Multithreaded download synchronization issues
* Fixing a problem with test
* OAK-9576: Multithreaded download synchronization issues
* Fixing synchronization issues
* Fixing OOM issue
* Adding delay between download retries
* OAK-9576: Multi... | oak-run-commons/src/main/java/org/apache/jackrabbit/oak/index/indexer/document/DocumentStoreIndexerBase.java | java | 2021-12-01T07:03:04Z |
def top_karma(bot, trigger):
"""
Show karma status for the top n number of IRC users.
"""
try:
top_limit = int(trigger.group(2).strip())
except ValueError:
top_limit = 5
query = "SELECT slug, value FROM nick_values NATURAL JOIN nicknames \
WHERE key = 'karma' ORDER BY va... | def top_karma(bot, trigger):
"""
Show karma status for the top n number of IRC users.
"""
try:
top_limit = int(trigger.group(2).strip())
except ValueError:
top_limit = 5
query = "SELECT slug, value FROM nick_values NATURAL JOIN nicknames \
WHERE key = 'karma' ORDER BY va... | null | cwe-089 | null | github.com/OpCode1300/sopel-karma/commit/e4d49f7b3d88f8874c7862392f3f4c2065a25695 | null | sopel_modules/karma/karma.py | py | null |
public function read($source) {
$source = $this->escapePath($source);
// close the single quote, open a double quote where we put the single quote...
$source = str_replace('\'', '\'"\'"\'', $source);
// since returned stream is closed by the caller we need to create a new instance
// since we can't re-use the... | public function read($source) {
$source = $this->escapePath($source);
// close the single quote, open a double quote where we put the single quote...
$source = str_replace('\'', '\'"\'"\'', $source);
// since returned stream is closed by the caller we need to create a new instance
// since we can't re-use the... | CVE-2015-7698 | CWE-78 | icewind1991 SMB before 1.0.3 allows remote authenticated users to execute arbitrary SMB commands via shell metacharacters in the user argument in the (1) listShares function in Server.php or the (2) connect or (3) read function in Share.php. | https://github.com/icewind1991/SMB/commit/33ab10cc4d5c3e48cba3a074b5f9fc67590cd032 | improve support for workgroups/domains | NativeShare.php | php | 2015-10-21T18:59:00Z |
static int kvm_virtio_pci_vq_vector_unmask(VirtIOPCIProxy *proxy,
unsigned int queue_no,
unsigned int vector,
MSIMessage msg)
{
VirtQueue *vq = virtio_get_queue(proxy->vdev, queue_no);
EventNo... | static int kvm_virtio_pci_vq_vector_unmask(VirtIOPCIProxy *proxy,
unsigned int queue_no,
unsigned int vector,
MSIMessage msg)
{
VirtQueue *vq = virtio_get_queue(proxy->vdev, queue_no);
EventNo... | null | null | null | qemu/commit/53510bfc1256711365cd2a841649f3ad5a79790f | virtio-pci: build for uninitialized return value in vq_vector_unmask
Fixes the following:
/home/mdroth/w/qemu2.git/hw/virtio-pci.c: In function
‘kvm_virtio_pci_vector_unmask’:
/home/mdroth/w/qemu2.git/hw/virtio-pci.c:673:12: error: ‘ret’ may be
used uninitialized in this function [-Werror=uninitialized]
cc1: all warn... | ./qemu/hw/virtio-pci.c | c | 2013-01-14T19:20:12Z |
func UnpackXzTar(filename string, destination string, verbosityLevel int) (err error) {
Verbose = verbosityLevel
if !common.FileExists(filename) {
return fmt.Errorf("file %s not found", filename)
}
if !common.DirExists(destination) {
return fmt.Errorf("directory %s not found", destination)
}
filename, err = c... | func UnpackXzTar(filename string, destination string, verbosityLevel int) (err error) {
Verbose = verbosityLevel
if !common.FileExists(filename) {
return fmt.Errorf("file %s not found", filename)
}
if !common.DirExists(destination) {
return fmt.Errorf("directory %s not found", destination)
}
filename, err = c... | CVE-2020-26277 | CWE-59 | DBdeployer is a tool that deploys MySQL database servers easily. In DBdeployer before version 1.58.2, users unpacking a tarball may use a maliciously packaged tarball that contains symlinks to files external to the target. In such scenario, an attacker could induce dbdeployer to write into a system file, thus altering ... | https://github.com/datacharmer/dbdeployer/commit/548e256c1de2f99746e861454e7714ec6bc9bb10 | Prevent arbitrary symlinks from tarballs
If a tarball had a symlink pointing outside the extract directory,
it would be extracted without complain. Now, such a symlink will
generate an error. | unpack.go | go | 2020-12-21T22:15:00Z |
int ssl23_get_client_hello(SSL *s)
{
char buf_space[11]; /* Request this many bytes in initial read.
* We can detect SSL 3.0/TLS 1.0 Client Hellos
* ('type == 3') correctly only when the following
* is in a single record, which is not guaranteed by
... | int ssl23_get_client_hello(SSL *s)
{
char buf_space[11]; /* Request this many bytes in initial read.
* We can detect SSL 3.0/TLS 1.0 Client Hellos
* ('type == 3') correctly only when the following
* is in a single record, which is not guaranteed by
... | null | null | null | null | Memory saving patch. | null | null | null |
function addEntryHandler(cat, entry, subCat)
{
mxEvent.addListener(entry, 'click', function()
{
if (currentEntry != entry)
{
currentEntry.style.backgroundColor = '';
currentEntry = entry;
currentEntry.style.backgroundColor = leftHighlight;
div.scrollTop = 0;
div.innerHTML ... | function addEntryHandler(cat, entry, subCat)
{
mxEvent.addListener(entry, 'click', function()
{
if (currentEntry != entry)
{
currentEntry.style.backgroundColor = '';
currentEntry = entry;
currentEntry.style.backgroundColor = leftHighlight;
div.scrollTop = 0;
div.innerText ... | CVE-2022-2014 | CWE-94,CWE-94 | Code Injection in GitHub repository jgraph/drawio prior to 19.0.2. | https://github.com/jgraph/drawio/commit/3d3f819d7a04da7d53b37cc0ca4269c157ba2825 | 19.0.2 release | src/main/webapp/js/diagramly/Dialogs.js | js | 2022-06-07T10:01:30Z |
@Override
public void scan(boolean directionDown, boolean skipSubChannel) throws RemoteException {
mLogger.logRadioEvent("Scan with direction %s, skipSubChannel? %s",
directionDown ? "down" : "up", skipSubChannel ? "yes" : "no");
synchronized (mLock) {
checkNotClosedLocke... | @Override
public void scan(boolean directionDown, boolean skipSubChannel) throws RemoteException {
mLogger.logRadioEvent("Scan with direction %s, skipSubChannel? %s",
directionDown ? "down" : "up", skipSubChannel ? "yes" : "no");
if (!RadioServiceUserController.isCurrentOrSystemUser(... | null | null | null | https://github.com/aosp-mirror/platform_frameworks_base/commit/024ec1687e81ba8df7d9bb8800fc9d4e0fd67423 | Add user control for broadcast radio HAL client
For opening tuner and adding announcement listener methods in HAL
clients, an illegal state exception is thrown if the user calling
methods is not the current user or system user. Calls from
non-current on other public methods in HAL clients which can modify
HAL state ar... | services/core/java/com/android/server/broadcastradio/aidl/TunerSession.java | java | 2022-10-27T21:45:22Z |
func (s *Server) getHandler(w http.ResponseWriter, r *http.Request) {
vars := mux.Vars(r)
action := vars["action"]
token := vars["token"]
filename := vars["filename"]
metadata, err := s.CheckMetadata(token, filename, true)
if err != nil {
log.Printf("Error metadata: %s", err.Error())
http.Error(w, http.Sta... | func (s *Server) getHandler(w http.ResponseWriter, r *http.Request) {
vars := mux.Vars(r)
action := vars["action"]
token := vars["token"]
filename := vars["filename"]
metadata, err := s.CheckMetadata(token, filename, true)
if err != nil {
log.Printf("Error metadata: %s", err.Error())
http.Error(w, http.Sta... | CVE-2021-33496 | CWE-79 | Dutchcoders transfer.sh before 1.2.4 allows XSS via an inline view. | https://github.com/dutchcoders/transfer.sh/commit/9df18fdc69de2e71f30d8c1e6bfab2fda2e52eb4 | fixes-20210521 (#373) | handlers.go | go | 2021-05-24T05:15:00Z |
@Inject(at = @At("HEAD"), method = "onDeath", cancellable = true)
private void onAnimaConduitEnchantmentKill(DamageSource source, CallbackInfo ci) {
if(!(source.getAttacker() instanceof PlayerEntity)) return;
LivingEntity user = (LivingEntity) source.getAttacker();
PiglinEntity piglinEntity... | @Inject(at = @At("HEAD"), method = "onDeath", cancellable = true)
protected void onAnimaConduitEnchantmentKill(DamageSource source, CallbackInfo ci) {
if(!(source.getAttacker() instanceof PlayerEntity)) return;
LivingEntity user = (LivingEntity) source.getAttacker();
PiglinEntity piglinEnti... | null | null | null | https://github.com/chronosacaria/MCDungeonsWeapons/commit/6a78ed5f072bc2eac18eb41282ddac1eaeb10f86 | Fixed crash with AnimaConduitEnchantmentMixin and AnimaConduitShotEnchantmentMixin | src/main/java/chronosacaria/mcdw/mixin/enchantments/AnimaConduitEnchantmentMixin.java | java | 2021-07-07T23:58:57Z |
static void ip6_append_data_mtu(int *mtu,
int *maxfraglen,
unsigned int fragheaderlen,
struct sk_buff *skb,
struct rt6_info *rt)
{
if (!(rt->dst.flags & DST_XFRM_TUNNEL)) {
if (skb == NULL) {
/* first fragment, reserve header_len */
*mtu = *mtu - rt->dst.header_len;
} else {
/*
... | static void ip6_append_data_mtu(int *mtu,
static void ip6_append_data_mtu(unsigned int *mtu,
int *maxfraglen,
unsigned int fragheaderlen,
struct sk_buff *skb,
struct rt6_info *rt,
bool pmtuprobe)
{
if (!(rt->dst.flags & DST_XFRM_TUNNEL)) {
if (skb == NULL) {
/* first fragment, reserve he... | CVE-2013-4163 | CWE-399 | The ip6_append_data_mtu function in net/ipv6/ip6_output.c in the IPv6 implementation in the Linux kernel through 3.10.3 does not properly maintain information about whether the IPV6_MTU setsockopt option had been specified, which allows local users to cause a denial of service (BUG and system crash) via a crafted appli... | https://github.com/torvalds/linux/commit/75a493e60ac4bbe2e977e7129d6d8cbb0dd236be | ipv6: ip6_append_data_mtu did not care about pmtudisc and frag_size
If the socket had an IPV6_MTU value set, ip6_append_data_mtu lost track
of this when appending the second frame on a corked socket. This results
in the following splat:
[37598.993962] ------------[ cut here ]------------
[37598.994008] kernel BUG at ... | net/ipv6/ip6_output.c | c | 2013-07-02T06:04:05Z |
int _sasl_add_string(char **out, size_t *alloclen,
size_t *outlen, const char *add)
{
size_t addlen;
if (add==NULL) add = "(null)";
addlen=strlen(add)+1; /* only compute once */
if (_buf_alloc(out, alloclen, (*outlen)+addlen)!=SASL_OK)
return SASL_NOMEM;
strncpy(*out + *outlen, add, addlen);
*... | int _sasl_add_string(char **out, size_t *alloclen,
size_t *outlen, const char *add)
{
size_t addlen;
if (add==NULL) add = "(null)";
addlen=strlen(add)+1; /* only compute once */
if (_buf_alloc(out, alloclen, (*outlen)+addlen)!=SASL_OK)
return SASL_NOMEM;
strncpy(*out + *outlen, add, addlen);
*... | null | null | null | https://github.com/cyrusimap/cyrus-sasl/commit/f96ba043fb9ffd30f7089564164203136506e7ab | Fix _sasl_add_string
Issue #587 was not solved correct.
_sasl_add_string adds zero terminator to the output string.
This cuts log messages after the first '%s' of the format string.
With the fix the function _sasl_log now logs the complete message.
Signed-off-by: Guido Kiener <guido@kiener-muenchen.de> | lib/common.c | c | 2021-01-25T16:57:02Z |
@Override
public Template.BlockInfo process(IWorldReader worldReader, BlockPos pos, BlockPos pos2, Template.BlockInfo infoIn1, Template.BlockInfo infoIn2, PlacementSettings settings, @Nullable Template template) {
// Workaround for https://bugs.mojang.com/browse/MC-130584
// Due to a hardcoded fiel... | @Override
public Template.BlockInfo process(IWorldReader worldReader, BlockPos pos, BlockPos pos2, Template.BlockInfo infoIn1, Template.BlockInfo infoIn2, PlacementSettings settings, @Nullable Template template) {
// Workaround for https://bugs.mojang.com/browse/MC-130584
// Due to a hardcoded fiel... | null | null | null | https://github.com/TelepathicGrunt/RepurposedStructures/commit/5c3f76910d1c55af5d4d897c2b782e282d46f4cf | fix crash with IWaterloggable blocks not actually waterloggable | src/main/java/com/telepathicgrunt/repurposedstructures/world/processors/WaterloggingFixProcessor.java | java | 2021-07-10T01:45:27Z |
jbig2_sd_list_referred(Jbig2Ctx *ctx, Jbig2Segment *segment)
{
int index;
Jbig2Segment *rsegment;
Jbig2SymbolDict **dicts;
int n_dicts = jbig2_sd_count_referred(ctx, segment);
int dindex = 0;
dicts = jbig2_new(ctx, Jbig2SymbolDict *, n_dicts);
if (dicts == NULL) {
jbig2_error(... | jbig2_sd_list_referred(Jbig2Ctx *ctx, Jbig2Segment *segment)
{
int index;
Jbig2Segment *rsegment;
Jbig2SymbolDict **dicts;
uint32_t n_dicts = jbig2_sd_count_referred(ctx, segment);
uint32_t dindex = 0;
dicts = jbig2_new(ctx, Jbig2SymbolDict *, n_dicts);
if (dicts == NULL) {
jb... | CVE-2016-9601 | CWE-119,CWE-190 | ghostscript before version 9.21 is vulnerable to a heap based buffer overflow that was found in the ghostscript jbig2_decode_gray_scale_image function which is used to decode halftone segments in a JBIG2 image. A document (PostScript or PDF) with an embedded, specially crafted, jbig2 image could trigger a segmentation ... | http://git.ghostscript.com/?p=jbig2dec.git;a=commit;h=e698d5c11d27212aa1098bc5b1673a3378563092 | null | null | c | null |
public static function loadFrom(Db $zdb, $id, $mailing, $new = true)
{
try {
$select = $zdb->select(self::TABLE);
$select->where('mailing_id = ' . $id);
$results = $zdb->execute($select);
$result = $results->current();
return $mailing->loadFromHi... | public static function loadFrom(Db $zdb, $id, $mailing, $new = true)
{
try {
$select = $zdb->select(self::TABLE);
$select->where(['mailing_id' => $id]);
$results = $zdb->execute($select);
$result = $results->current();
return $mailing->loadFromHi... | CVE-2021-41262 | CWE-89 | 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 SQL injection attacks by users with "member" privilege. Users are advised to upgrade to version 0.9.6 as soon as possible. There are no known workarounds. | https://github.com/galette/galette/commit/8e940641b5ed46c3f471332827df388ea00a85d3 | Use prepared statement rather than direct SQL | Transaction.php | php | 2021-12-16T19:15:00Z |
static inline struct old_rng_alg *crypto_old_rng_alg(struct crypto_rng *tfm)
{
return &crypto_rng_tfm(tfm)->__crt_alg->cra_rng;
} | static inline struct crypto_rng *__crypto_rng_cast(struct crypto_tfm *tfm)
{
return container_of(tfm, struct crypto_rng, base);
} | null | null | null | https://github.com/torvalds/linux/commit/94f1bb15bed84ad6c893916b7e7b9db6f1d7eec6 | crypto: rng - Remove old low-level rng interface
Now that all rng implementations have switched over to the new
interface, we can remove the old low-level interface.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> | crypto/rng.c | c | 2015-04-21T02:46:46Z |
static inline void Process_v9_option_templates(exporter_v9_domain_t *exporter, void *option_template_flowset, FlowSource_t *fs) {
void *option_template, *p;
uint32_t size_left, nr_scopes, nr_options, i;
uint16_t id, scope_length, option_length, offset, sampler_id_length;
uint16_t offset_sampler_id, offset_sampler_mode... | static inline void Process_v9_option_templates(exporter_v9_domain_t *exporter, void *option_template_flowset, FlowSource_t *fs) {
void *option_template, *p;
uint32_t size_left, nr_scopes, nr_options, i;
uint16_t id, scope_length, option_length, offset, sampler_id_length;
uint16_t offset_sampler_id, offset_sampler_mode... | null | null | null | https://github.com/phaag/nfdump/commit/ff0e855bd1f51bed9fc5d8559c64d3cfb475a5d8 | Fix security issues in netflow_v9.c and ipfix.c | null | null | 2016-05-07T06:35:34Z |
public void parse(List<String> words){
int size = words.size();
if(size == 1){
command = words.get(0);
args = new LinkedList<>();
}else if(size > 1){
command = words.get(0);
args = new LinkedList<>(words.subList(1, size));
args.removeIf... | public void parse(List<String> words){
command = "";
args = new LinkedList<>();
int size = words.size();
if(size == 1){
command = words.get(0);
}else if(size > 1){
command = words.get(0);
args = new LinkedList<>(words.subList(1, size));
... | null | null | null | https://github.com/wh1t3p1g/ysomap/commit/5d9b4bf9baec7caa3d31e25ca1b90de93408a9a0 | add some exploits' script | cli/src/main/java/ysomap/cli/Console.java | java | 2021-06-16T15:18:32Z |
@register.tag
@basictag(takes_context=True)
def screenshotcommentcounts(context, screenshot):
"""
Returns a JSON array of current comments for a screenshot.
Each entry in the array has a dictionary containing the following keys:
=========== ==================================================
Ke... | @register.tag
@basictag(takes_context=True)
def screenshotcommentcounts(context, screenshot):
"""
Returns a JSON array of current comments for a screenshot.
Each entry in the array has a dictionary containing the following keys:
=========== ==================================================
Ke... | null | cwe-079 | null | github.com/reviewboard/reviewboard/commit/7a0a9d94555502278534dedcf2d75e9fccce8c3d | null | reviewboard/reviews/templatetags/reviewtags.py | py | 2011-11-15T10:46:40Z |
- (BOOL)webView:(UIWebView*)theWebView shouldStartLoadWithRequest:(NSURLRequest*)request navigationType:(UIWebViewNavigationType)navigationType
{
NSURL* url = request.URL;
BOOL isTopLevelNavigation = [request.URL isEqual:[request mainDocumentURL]];
// See if the url uses the 'gap-iab' protocol. If so, the ... | - (BOOL)webView:(UIWebView*)theWebView shouldStartLoadWithRequest:(NSURLRequest*)request navigationType:(UIWebViewNavigationType)navigationType
{
NSURL* url = request.URL;
BOOL isTopLevelNavigation = [request.URL isEqual:[request mainDocumentURL]];
// See if the url uses the 'gap-iab' protocol. If so, the ... | CVE-2014-0073 | CWE-264 | The CDVInAppBrowser class in the Apache Cordova In-App-Browser standalone plugin (org.apache.cordova.inappbrowser) before 0.3.2 for iOS and the In-App-Browser plugin for iOS from Cordova 2.6.0 through 2.9.0 does not properly validate callback identifiers, which allows remote attackers to execute arbitrary JavaScript in... | https://github.com/apache/cordova-plugin-inappbrowser/commit/26702cb0720c5c394b407c23570136c53171fa55 | Validate that callbackId is correctly formed | CDVInAppBrowser.m | m | 2017-10-30T19:29:00Z |
int job_deserialize(Job *j, FILE *f) {
int r;
assert(j);
assert(f);
for (;;) {
_cleanup_free_ char *line = NULL;
char *l, *v;
size_t k;
r = read_line(f, LONG_LINE_MAX, &line);
if (r < 0)
... | int job_deserialize(Job *j, FILE *f) {
int r;
assert(j);
assert(f);
for (;;) {
_cleanup_free_ char *line = NULL;
char *l, *v;
size_t k;
r = read_line(f, LONG_LINE_MAX, &line);
if (r < 0)
... | null | null | null | https://github.com/systemd/systemd/commit/d68c645bd3323ae1f0dfcb8fd74ea6b19681db8a | core: rework serialization
Let's be more careful with what we serialize: let's ensure we never
serialize strings that are longer than LONG_LINE_MAX, so that we know we
can read them back with read_line(…, LONG_LINE_MAX, …) safely.
In order to implement this all serialization functions are move to
serialize.[ch], and ... | src/core/job.c | c | 2018-10-17T18:40:09Z |
@SuppressWarnings("squid:S1860") // Suppress synchronize warning
public TimeseriesMetadata get(
TimeSeriesMetadataCacheKey key, Set<String> allSensors, boolean debug) throws IOException {
if (!CACHE_ENABLE) {
// bloom filter part
TsFileSequenceReader reader = FileReaderManager.getInstance().get(... | @SuppressWarnings("squid:S1860") // Suppress synchronize warning
public TimeseriesMetadata get(
TimeSeriesMetadataCacheKey key, Set<String> allSensors, boolean debug) throws IOException {
if (!CACHE_ENABLE) {
// bloom filter part
TsFileSequenceReader reader = FileReaderManager.getInstance().get(... | null | null | null | https://github.com/apache/iotdb/commit/bbc7c8b5293b54a083e28da5b6d81ad8c619deb3 | [To rel/0.12] [IOTDB-1415] Fix OOM caused by ChunkCache (#3312) | server/src/main/java/org/apache/iotdb/db/engine/cache/TimeSeriesMetadataCache.java | java | 2021-06-04T07:16:01Z |
uint8_t *av_packet_pack_dictionary(AVDictionary *dict, int *size)
{
AVDictionaryEntry *t = NULL;
uint8_t *data = NULL;
*size = 0;
if (!dict)
return NULL;
while ((t = av_dict_get(dict, "", t, AV_DICT_IGNORE_SUFFIX))) {
const int keylen = strlen(t->key);
const int valuelen = st... | uint8_t *av_packet_pack_dictionary(AVDictionary *dict, int *size)
{
AVDictionaryEntry *t = NULL;
uint8_t *data = NULL;
*size = 0;
if (!dict)
return NULL;
while ((t = av_dict_get(dict, "", t, AV_DICT_IGNORE_SUFFIX))) {
const size_t keylen = strlen(t->key);
const size_t value... | null | null | null | FFmpeg/commit/fcb1b0078d3810aa2d9270e1095c8b5835fc5667 | avcodec/avpacket: use size_t, fix potential integer overflow
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> | ./ffmpeg/libavcodec/avpacket.c | c | 2013-11-20T15:47:00Z |
int PDFiumEngine::GetMostVisiblePage() {
if (in_flight_visible_page_)
return *in_flight_visible_page_;
CalculateVisiblePages();
return most_visible_page_;
} | int PDFiumEngine::GetMostVisiblePage() {
if (in_flight_visible_page_)
return *in_flight_visible_page_;
// We can call GetMostVisiblePage through a callback from PDFium. We have
// to defer the page deletion otherwise we could potentially delete the page
// that originated the calling JS request and dest... | CVE-2016-5216 | CWE-416 | A use after free in PDFium in Google Chrome prior to 55.0.2883.75 for Mac, Windows and Linux, and 55.0.2883.84 for Android allowed a remote attacker to perform an out of bounds memory read via a crafted PDF file. | https://github.com/chromium/chromium/commit/bf6a6765d44b09c64b8c75d749efb84742a250e7 | [pdf] Defer page unloading in JS callback.
One of the callbacks from PDFium JavaScript into the embedder is to get the
current page number. In Chromium, this will trigger a call to
CalculateMostVisiblePage that method will determine the visible pages and unload
any non-visible pages. But, if the originating JS is on a... | pdf/pdfium/pdfium_engine.cc | cc | 2016-10-12T17:36:50Z |
public static function commented( string $username, string $code ) {
$username = strtolower($username);
// Step 20, 21
$comments = file_get_contents(sprintf(SOA2_COMMENTS_API, $username, rand()));
$matches = [];
preg_match_all(SOA2_COMMENTS_REGEX, $comments, $matches, PREG_PATTERN_ORDER);
for ($i = 0; $i < ... | public static function commented( string $username, string $code ) {
$username = strtolower($username);
// Step 20, 21
$comments = file_get_contents(sprintf(SOA2_COMMENTS_API, $username, rand()));
$matches = [];
preg_match_all(SOA2_COMMENTS_REGEX, $comments, $matches, PREG_PATTERN_ORDER);
for ($i = 0; $i < ... | CVE-2021-46250 | NVD-CWE-noinfo | An issue in SOA2Login::commented of ScratchOAuth2 before commit a91879bd58fa83b09283c0708a1864cdf067c64a allows attackers to authenticate as other users on downstream components that rely on ScratchOAuth2. | https://github.com/ScratchVerifier/ScratchOAuth2/commit/a91879bd58fa83b09283c0708a1864cdf067c64a | SECURITY: Use strict comparison when authenticating
Incorrect comparison (autocasting) in SOA2Login::commented in
ScratchOAuth2 allows unprivileged attackers to authorize as other users
on downstream components that rely on ScratchOAuth2, as demonstrated by
"1234567890" and "123456789e1". | login.php | php | 2022-02-15T23:15:00Z |
{actionList.map((action) => {
return <a href={action.url} class={`btn btn-default btn-sm`} target="_blank"><i class={`fa fa-${action.icon}`} /> {action.name}</a>;
})} | {actionList.map((action) => {
return <a href={action.url} class="btn btn-default btn-sm" target="_blank" rel="noopener noreferrer"><i class={`fa fa-${action.icon}`} /> {action.name}</a>;
})} | null | cwe-200 | null | github.com/MyHomeworkSpace/client/commit/ec5d9dd6c12b12bb89de7ed96fadc37e45710396 | add noopener noreferrer to event actions | CalendarEventPopover.jsx | jsx | 2020-03-28T18:45:45Z |
sort_key: (tagset_id ? all_tags[tagset_id].t.toLowerCase() :
'') + text.toLowerCase()
};
var div = $(create_tag_html(
text, description, my_name, new_tag_counter,
tagset ? tagset.attr('data-id') : null));
div.addClass('ui-sel... | sort_key: (tagset_id ? all_tags[tagset_id].t.toLowerCase() :
'') + text.toLowerCase()
};
var div = $(create_tag_html(
text, description, new_tag_counter,
tagset ? tagset.attr('data-id') : null));
var title = create_tag_title(... | CVE-2021-41132 | CWE-79,CWE-116 | OMERO.web provides a web based client and plugin infrastructure. In versions prior to 5.11.0, a variety of templates do not perform proper sanitization through HTML escaping. Due to the lack of sanitization and use of ``jQuery.html()``, there are a whole host of cross-site scripting possibilities with specially crafted... | https://github.com/ome/omero-web/commit/0168067accde5e635341b3c714b1d53ae92ba424 | Fix issues with inconsistency in input sanitisation leading to XSS vectors | ome.thumbnail_figure.js | js | 2021-10-14T16:15:00Z |
public ProtoArray build() {
checkNotNull(progressiveBalancesMode, "Progressive balances mode must be supplied");
checkNotNull(currentEpoch, "Current epoch must be supplied");
checkNotNull(justifiedCheckpoint, "Justified checkpoint must be supplied");
checkNotNull(finalizedCheckpoint, "finalized checkpoi... | public ProtoArray build() {
checkNotNull(spec, "Spec must be supplied");
checkNotNull(progressiveBalancesMode, "Progressive balances mode must be supplied");
checkNotNull(currentEpoch, "Current epoch must be supplied");
checkNotNull(justifiedCheckpoint, "Justified checkpoint must be supplied");
chec... | null | null | null | https://github.com/Consensys/teku/commit/255ce38e194394d6dd162cc2d3287fcd380a6807 | Full Progressive Balances Improvements (#6747)
* Remove original bouncing attack fix
* REVERT ME: Switch ref tests to use FULL progressive balance mode
* Strengthen equivocation discarding
* Implement withholding attack fix. Pruning is still too aggressive.
* Ensure justified block isn't pruned even if it's actual... | storage/src/main/java/tech/pegasys/teku/storage/protoarray/ProtoArrayBuilder.java | java | 2023-01-31T10:37:34Z |
static int bin_entry(RCore *r, int mode, ut64 laddr, int va, bool inifin) {
char str[R_FLAG_NAME_SIZE];
RList *entries = r_bin_get_entries (r->bin);
RListIter *iter;
RBinAddr *entry = NULL;
int i = 0;
ut64 baddr = r_bin_get_baddr (r->bin);
if (IS_MODE_RAD (mode)) {
r_cons_printf ("fs symbols\n");
} else if (... | static int bin_entry(RCore *r, int mode, ut64 laddr, int va, bool inifin) {
char str[R_FLAG_NAME_SIZE];
RList *entries = r_bin_get_entries (r->bin);
RListIter *iter;
RBinAddr *entry = NULL;
int i = 0;
ut64 baddr = r_bin_get_baddr (r->bin);
if (IS_MODE_RAD (mode)) {
r_cons_printf ("fs symbols\n");
} else if (... | null | null | null | https://github.com/radare/radare2/commit/1f37c04f2a762500222dda2459e6a04646feeedf | Fix #9904 - crash in r2_hoobr_r_read_le32 (over 9000 entrypoints) and read_le oobread (#9923) | libr/core/cbin.c | c | 2018-04-18T11:38:22Z |
static int32_t scsi_send_command(SCSIRequest *req, uint8_t *buf)
{
SCSIDiskReq *r = DO_UPCAST(SCSIDiskReq, req, req);
SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, req->dev);
int32_t len;
uint8_t command;
uint8_t *outbuf;
int rc;
command = buf[0];
outbuf = (uint8_t *)r->iov.iov_base... | static int32_t scsi_send_command(SCSIRequest *req, uint8_t *buf)
{
SCSIDiskReq *r = DO_UPCAST(SCSIDiskReq, req, req);
SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, req->dev);
int32_t len;
uint8_t command;
int rc;
command = buf[0];
DPRINTF("Command: lun=%d tag=0x%x data=0x%02x", req->lun... | CVE-2011-3346 | CWE-119 | Buffer overflow in hw/scsi-disk.c in the SCSI subsystem in QEMU before 0.15.2, as used by Xen, might allow local guest users with permission to access the CD-ROM to cause a denial of service (guest crash) via a crafted SAI READ CAPACITY SCSI command. NOTE: this is only a vulnerability when root has manually modified c... | https://github.com/bonzini/qemu/commit/7285477ab11831b1cf56e45878a89170dd06d9b9 | scsi-disk: lazily allocate bounce buffer
It will not be needed for reads and writes if the HBA provides a sglist.
In addition, this lets scsi-disk refuse commands with an excessive
allocation length, as well as limit memory on usual well-behaved guests.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by... | scsi-disk.c | c | 2011-09-16T14:40:04Z |
static pyc_object *get_complex_object(RzBinPycObj *pyc, RzBuffer *buffer) {
pyc_object *ret = NULL;
bool error = false;
ut32 size = 0;
ut32 n1 = 0;
ut32 n2 = 0;
ret = RZ_NEW0(pyc_object);
if (!ret) {
return NULL;
}
if ((pyc->magic_int & 0xffff) <= 62061) {
n1 = get_ut8(buffer, &error);
} else {
n1 = g... | static pyc_object *get_complex_object(RzBinPycObj *pyc, RzBuffer *buffer) {
pyc_object *ret = NULL;
bool error = false;
ut32 n1 = 0;
ut32 n2 = 0;
ret = RZ_NEW0(pyc_object);
if (!ret) {
return NULL;
}
if ((pyc->magic_int & 0xffff) <= 62061) {
n1 = get_ut8(buffer, &error);
} else {
n1 = get_st32(buffer, ... | CVE-2022-36040 | CWE-787 | Rizin is a UNIX-like reverse engineering framework and command-line toolset. Versions 0.4.0 and prior are vulnerable to an out-of-bounds write when getting data from PYC(python) files. A user opening a malicious PYC file could be affected by this vulnerability, allowing an attacker to execute code on the user's machine... | https://github.com/rizinorg/rizin/commit/38d8006cd609ac75de82b705891d3508d2c218d5 | fix #2963 - oob write (1 byte) in pyc/marshal.c | marshal.c | c | 2022-08-22T17:50:19Z |
static time_t asn1_time_to_time_t(ASN1_UTCTIME * timestr TSRMLS_DC) /* {{{ */
{
/*
This is how the time string is formatted:
snprintf(p, sizeof(p), "%02d%02d%02d%02d%02d%02dZ",ts->tm_year%100,
ts->tm_mon+1,ts->tm_mday,ts->tm_hour,ts->tm_min,ts->tm_sec);
*/
time_t ret;
struct tm thetime;
char * strbuf;
... | static time_t asn1_time_to_time_t(ASN1_UTCTIME * timestr TSRMLS_DC) /* {{{ */
{
/*
This is how the time string is formatted:
snprintf(p, sizeof(p), "%02d%02d%02d%02d%02d%02dZ",ts->tm_year%100,
ts->tm_mon+1,ts->tm_mday,ts->tm_hour,ts->tm_min,ts->tm_sec);
*/
time_t ret;
struct tm thetime;
char * strbuf;
... | CVE-2013-6420 | CWE-119 | The asn1_time_to_time_t function in ext/openssl/openssl.c in PHP before 5.3.28, 5.4.x before 5.4.23, and 5.5.x before 5.5.7 does not properly parse (1) notBefore and (2) notAfter timestamps in X.509 certificates, which allows remote attackers to execute arbitrary code or cause a denial of service (memory corruption) vi... | https://git.php.net/?p=php-src.git;a=commit;h=c1224573c773b6845e83505f717fbf820fc18415 | null | null | c | null |
@Override
public void destroy(Scene origin) {
text = null;
fillPaint = null;
font = null;
hasMetrics = false;
super.destroyTheRest(origin);
} | @Override
public void destroy(Scene origin) {
text = DefaultText;
fillPaint = DefaultFill;
font = DefaultFont;
hasMetrics = false;
super.destroyTheRest(origin);
} | null | null | null | https://github.com/fastjengine/FastJ/commit/3cf252b71786d782a98fdfb976eba13154e57757 | fixed a ton of concurrency issues
New Additions
- `Drawable#isDestroyed` -- boolean for checking if a given `Drawable` has been destroyed
- This boolean also effects the outcome of `Drawable#shouldRender` -- if the `Drawable` is destroyed, then it will not be rendered
- `ManagedList` -- a type of `List` with conve... | src/main/java/tech/fastj/graphics/game/Text2D.java | java | 2021-12-20T17:24:53Z |
void *block_job_create(const BlockJobDriver *driver, BlockDriverState *bs,
int64_t speed, BlockCompletionFunc *cb,
void *opaque, Error **errp)
{
BlockBackend *blk;
BlockJob *job;
assert(cb);
if (bs->job) {
error_setg(errp, QERR_DEVICE_IN_USE, bdrv_ge... | void *block_job_create(const char *job_id, const BlockJobDriver *driver,
BlockDriverState *bs, int64_t speed,
BlockCompletionFunc *cb, void *opaque, Error **errp)
{
BlockBackend *blk;
BlockJob *job;
assert(cb);
if (bs->job) {
error_setg(errp, QERR_DE... | null | null | null | qemu/commit/7f0317cfc8da620cdb38cb5cfec5f82b8dd05403 | blockjob: Add 'job_id' parameter to block_job_create()
When a new job is created, the job ID is taken from the device name of
the BDS. This patch adds a new 'job_id' parameter to let the caller
provide one instead.
This patch also verifies that the ID is always unique and well-formed.
This causes problems in a couple... | ./qemu/blockjob.c | c | 2016-07-05T14:28:56Z |
static struct child_process *git_connect_git(int fd[2], char *hostandport,
const char *path, const char *prog,
enum protocol_version version,
int flags)
{
struct child_process *conn;
struct strbuf request = STRBUF_INIT;
/*
* Set up virtual host information based on where we will
* c... | static struct child_process *git_connect_git(int fd[2], char *hostandport,
const char *path, const char *prog,
enum protocol_version version,
int flags)
{
struct child_process *conn;
struct strbuf request = STRBUF_INIT;
/*
* Set up virtual host information based on where we will
* c... | null | null | null | https://github.com/git/git/commit/a02ea577174ab8ed18f847cf1693f213e0b9c473 | git_connect_git(): forbid newlines in host and path
When we connect to a git:// server, we send an initial request that
looks something like:
002dgit-upload-pack repo.git\0host=example.com
If the repo path contains a newline, then it's included literally, and
we get:
002egit-upload-pack repo
.git\0host=exampl... | null | null | 2021-01-07T09:43:58Z |
slhc_init(int rslots, int tslots)
{
printk(KERN_DEBUG "Called IP function on non IP-system: slhc_init");
return NULL;
} | slhc_init(int rslots, int tslots)
{
register short i;
register struct cstate *ts;
struct slcompress *comp;
if (rslots < 0 || rslots > 255 || tslots < 0 || tslots > 255)
return ERR_PTR(-EINVAL);
comp = kzalloc(sizeof(struct slcompress), GFP_KERNEL);
if (! comp)
goto out_fail;
if (rslots > 0) {
size_t rsi... | CVE-2015-7799 | null | The slhc_init function in drivers/net/slip/slhc.c in the Linux kernel through 4.2.3 does not ensure that certain slot numbers are valid, which allows local users to cause a denial of service (NULL pointer dereference and system crash) via a crafted PPPIOCSMAXCID ioctl call. | http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/drivers/net/slip/slhc.c?id=4ab42d78e37a294ac7bc56901d563c642e03c4ae | ppp, slip: Validate VJ compression slot parameters completely
Currently slhc_init() treats out-of-range values of rslots and tslots
as equivalent to 0, except that if tslots is too large it will
dereference a null pointer (CVE-2015-7799).
Add a range-check at the top of the function and make it return an
ERR_PTR() on... | null | null | null |
static void commit_tree(struct mount *mnt, struct mount *shadows)
{
struct mount *parent = mnt->mnt_parent;
struct mount *m;
LIST_HEAD(head);
struct mnt_namespace *n = parent->mnt_ns;
BUG_ON(parent == mnt);
list_add_tail(&head, &mnt->mnt_list);
list_for_each_entry(m, &head, mnt_list)
m->mnt_ns = n;
list_sp... | static void commit_tree(struct mount *mnt, struct mount *shadows)
{
struct mount *parent = mnt->mnt_parent;
struct mount *m;
LIST_HEAD(head);
struct mnt_namespace *n = parent->mnt_ns;
BUG_ON(parent == mnt);
list_add_tail(&head, &mnt->mnt_list);
list_for_each_entry(m, &head, mnt_list)
m->mnt_ns = n;
list_sp... | null | CWE-400, CWE-703 | null | https://github.com/torvalds/linux/commit/d29216842a85c7970c536108e093963f02714498 | mnt: Add a per mount namespace limit on the number of mounts
CAI Qian <caiqian@redhat.com> pointed out that the semantics
of shared subtrees make it possible to create an exponentially
increasing number of mounts in a mount namespace.
mkdir /tmp/1 /tmp/2
mount --make-rshared /
for i in $(seq 1 20) ; do mo... | null | null | 2016-09-28T05:27:17Z |
static char *print_number( cJSON *item )
{
char *str;
double f, f2;
int64_t i;
str = (char*) cJSON_malloc( 64 );
if ( str ) {
f = item->valuefloat;
i = f;
f2 = i;
if ( f2 == f && item->valueint >= LLONG_MIN && item->valueint <= LLONG_MAX )
sprintf( str, "%lld", (long long) item->valueint );
else
... | static char *print_number( cJSON *item )
static int update(printbuffer *p)
{
char *str;
if (!p || !p->buffer) return 0;
str=p->buffer+p->offset;
return p->offset+strlen(str);
}
/* Render the number nicely from the given item into a string. */
static char *print_number(cJSON *item,printbuffer *p)
{
char *str=0;... | CVE-2016-4303 | CWE-120 | The parse_string function in cjson.c in the cJSON library mishandles UTF8/16 strings, which allows remote attackers to cause a denial of service (crash) or execute arbitrary code via a non-hex character in a JSON string, which triggers a heap-based buffer overflow. | https://github.com/esnet/iperf/commit/91f2fa59e8ed80dfbf400add0164ee0e508e412a | Fix a buffer overflow / heap corruption issue that could occur if a
malformed JSON string was passed on the control channel. This issue,
present in the cJSON library, was already fixed upstream, so was
addressed here in iperf3 by importing a newer version of cJSON (plus
local ESnet modifications).
Discovered and repo... | src/cjson.c | c | 2016-06-03T16:23:59Z |
static int usb_serial_initfn(USBDevice *dev)
{
USBSerialState *s = DO_UPCAST(USBSerialState, dev, dev);
s->dev.speed = USB_SPEED_FULL;
qemu_chr_add_handlers(s->cs, usb_serial_can_read, usb_serial_read,
usb_serial_event, s);
usb_serial_handle_reset(dev);
return 0; | static int usb_serial_initfn(USBDevice *dev)
{
USBSerialState *s = DO_UPCAST(USBSerialState, dev, dev);
s->dev.speed = USB_SPEED_FULL;
if (!s->cs) {
error_report("Property chardev is required");
return -1;
}
qemu_chr_add_handlers(s->cs, usb_serial_can_read, usb_serial_read,
... | null | null | null | qemu/commit/81bf96d3d299a7f88bf3e2ece4f795a9949db5f7 | usb-serial: Fail instead of crash when chardev is missing
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> | ./qemu/hw/usb-serial.c | c | 2010-05-28T15:03:22Z |
static int unzzip_cat (int argc, char ** argv, int extract)
{
int argn;
ZZIP_MEM_DISK* disk;
if (argc == 1)
{
printf (__FILE__" version "ZZIP_PACKAGE" "ZZIP_VERSION"\n");
return EXIT_OK; /* better provide an archive argument */
}
disk = zzip_mem_disk_open (argv[1]);
if (! disk) {
... | static int unzzip_cat (int argc, char ** argv, int extract)
{
int done = 0;
int argn;
FILE* disk;
disk = fopen (argv[1], "r");
if (! disk) {
perror(argv[1]);
return exitcode(errno);
}
if (argc == 2)
{ /* print directory list */
ZZIP_ENTRY* entry = zzip_entry_findfirst(disk);
for (... | CVE-2018-6542 | null | In ZZIPlib 0.13.67, there is a bus error (when handling a disk64_trailer seek value) caused by loading of a misaligned address in the zzip_disk_findfirst function of zzip/mmapped.c. | https://github.com/gdraheim/zziplib/commit/931f962ddfec0e00d6f486df2c56d9857b55944e | fopen may fail for a bad name -> EXIT_ERRORS in that case #17 | null | null | 2018-02-05T13:37:13Z |
public void rebindSlots()
{
this.slots.clear();
((ContainerAccess)this).getLastSlots().clear();
this.addSlot(new IESlot.ModWorkbench(this, this.inv, 0, 24, 22, 1));
slotCount = 1;
ItemStack tool = this.getSlot(0).getItem();
if(tool.getItem() instanceof IUpgradeableTool)
{
tool.getCapability(Capabilit... | public void rebindSlots()
{
this.slots.clear();
((ContainerAccess)this).getLastSlots().clear();
((ContainerAccess)this).getRemoteSlots().clear();
this.addSlot(new IESlot.ModWorkbench(this, this.inv, 0, 24, 22, 1));
slotCount = 1;
ItemStack tool = this.getSlot(0).getItem();
if(tool.getItem() instanceof I... | null | null | null | https://github.com/BluSunrize/ImmersiveEngineering/commit/c455a4ffe6e8978f3ad157dcfc5fc80b775d55a7 | Fix crash when using the workbench screen | src/main/java/blusunrize/immersiveengineering/common/gui/ModWorkbenchContainer.java | java | 2021-08-06T07:56:49Z |
XSetCommand (
Display *dpy,
Window w,
char **argv,
int argc)
{
register int i;
size_t nbytes;
register char *buf, *bp;
for (i = 0, nbytes = 0; i < argc; i++) {
nbytes += safestrlen(argv[i]) + 1;
}
if ((bp = buf = Xmalloc(nbytes))) {
/* copy arguments into single buffer */
for (i = 0; i < argc; i++... | XSetCommand (
Display *dpy,
Window w,
char **argv,
int argc)
{
register int i;
size_t nbytes;
register char *buf, *bp;
for (i = 0, nbytes = 0; i < argc; i++) {
nbytes += safestrlen(argv[i]) + 1;
if (nbytes >= USHRT_MAX)
return 1;
}
if ((bp = buf = Xmalloc(nbytes))) {
/* copy argum... | CVE-2021-31535 | CWE-120 | LookupCol.c in X.Org X through X11R7.7 and libX11 before 1.7.1 might allow remote attackers to execute arbitrary code. The libX11 XLookupColor request (intended for server-side color lookup) contains a flaw allowing a client to send color-name requests with a name longer than the maximum size allowed by the protocol (a... | https://gitlab.freedesktop.org/xorg/lib/libx11/-/commit/8d2e02ae650f00c4a53deb625211a0527126c605 | Reject string longer than USHRT_MAX before sending them on the wire
The X protocol uses CARD16 values to represent the length so
this would overflow.
CVE-2021-31535
Signed-off-by: Matthieu Herrb <matthieu@herrb.eu> | null | null | null |
protected function getTempFile($path = '') {
static $cache = array();
static $rmfunc;
$key = '';
if ($path !== '') {
$key = $this->id . '#' . $path;
if (isset($cache[$key])) {
return $cache[$key];
}
}
if ($tmpdir = $this->getTempPath()) {
if (!$rmfunc) {
$rmfunc = create_function('... | protected function getTempFile($path = '') {
static $cache = array();
static $rmfunc;
$key = '';
if ($path !== '') {
$key = $this->id . '#' . $path;
if (isset($cache[$key])) {
return $cache[$key];
}
}
if ($tmpdir = $this->getTempPath()) {
if (!$rmfunc) {
$rmfunc = create_function('... | 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 |
static int vda_h264_end_frame(AVCodecContext *avctx)
{
H264Context *h = avctx->priv_data;
struct vda_context *vda_ctx = avctx->hwaccel_context;
AVFrame *frame = &h->cur_pic_ptr->f;
struct vda_buffer *context;
AVBufferRef *buffer;
int status;
... | static int vda_h264_end_frame(AVCodecContext *avctx)
{
H264Context *h = avctx->priv_data;
struct vda_context *vda_ctx = avctx->hwaccel_context;
AVFrame *frame = &h->cur_pic_ptr->f;
struct vda_buffer *context;
AVBufferRef *buffer;
int status;
... | null | null | null | FFmpeg/commit/ffd7fd79441f97f1edb25181af0603ff6ea9b342 | avcodec/vda_h264: use av_buffer to manage buffers
This patch fixes a leak of buffer when seeking occurs.
It adds a flag in struct vda_context for compatibility with apps which
currently use it. If the flag is not set, the hwaccel will behave like
before.
Signed-off-by: Sebastien Zwickert <dilaroga@gmail.com> | ./ffmpeg/libavcodec/vda_h264.c | c | 2013-05-21T04:12:30Z |
static void gen_spr_970_lpar(CPUPPCState *env)
{
spr_register(env, SPR_970_HID4, "HID4",
SPR_NOACCESS, SPR_NOACCESS,
&spr_read_generic, &spr_write_generic,
0x00000000);
} | static void gen_spr_970_lpar(CPUPPCState *env)
{
#if !defined(CONFIG_USER_ONLY)
spr_register(env, SPR_970_HID4, "HID4",
SPR_NOACCESS, SPR_NOACCESS,
&spr_read_generic, &spr_write_970_hid4,
0x00000000);
#endif
} | null | null | null | qemu/commit/4b3fc37788fe5a9c6ec0c43863c78604db40cbb3 | ppc: Use a helper to filter writes to LPCR
This handles filtering bits based on what is implemented by a
given architecture version. We also use it to copy to LPCR
some of the relevant 970 HID4 bits.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
[clg: fixed checkpatch.pl errors ]
Signed-off-by: Céd... | ./qemu/target-ppc/translate_init.c | c | 2016-06-27T06:55:16Z |
@Override
public boolean shutdown() {
if (isVisible()) {
final int selectedOption =
EventThreadJOptionPane.showConfirmDialog(
this,
"Are you sure you want to exit TripleA?\nUnsaved game data will be lost.",
"Exit Program",
JOptionPane.YES_NO_... | @Override
public boolean shutdown() {
if (isVisible()) {
final boolean confirmed =
EventThreadJOptionPane.showConfirmDialog(
this,
"Are you sure you want to exit TripleA?\nUnsaved game data will be lost.",
"Exit Program",
ConfirmDialogType.Y... | null | null | null | https://github.com/triplea-game/triplea/commit/9a5de249c4e109318ba7e34cef6cb9cf6c17975e | Non-Modal Combat Prompts (Allow user to scroll map during bombard prompt) (#8949)
In short, this allows users to scroll the map during combat prompts such
as bombardment (attack subs, etc)
This update converts mainly combat confirmation dialog prompts to be non-modal
and uses a latch to simulate the blocking nature o... | game-app/game-core/src/main/java/games/strategy/triplea/ui/TripleAFrame.java | java | 2021-03-06T20:03:57Z |
void SharedWorkerDevToolsAgentHost::AttachSession(DevToolsSession* session) {
session->AddHandler(std::make_unique<protocol::InspectorHandler>());
session->AddHandler(std::make_unique<protocol::NetworkHandler>(GetId()));
session->AddHandler(std::make_unique<protocol::SchemaHandler>());
session->SetRenderer(G... | void SharedWorkerDevToolsAgentHost::AttachSession(DevToolsSession* session) {
session->AddHandler(std::make_unique<protocol::InspectorHandler>());
session->AddHandler(std::make_unique<protocol::NetworkHandler>(GetId()));
session->AddHandler(std::make_unique<protocol::SchemaHandler>());
session->SetRenderer(w... | CVE-2018-6111 | CWE-20 | An object lifetime issue in the developer tools network handler in Google Chrome prior to 66.0.3359.117 allowed a local attacker to execute arbitrary code via a crafted HTML page. | https://github.com/chromium/chromium/commit/3c8e4852477d5b1e2da877808c998dc57db9460f | DevTools: speculative fix for crash in NetworkHandler::Disable
This keeps BrowserContext* and StoragePartition* instead of
RenderProcessHost* in an attemp to resolve UAF of RenderProcessHost
upon closure of DevTools front-end.
Bug: 801117, 783067, 780694
Change-Id: I6c2cca60cc0c29f0949d189cf918769059f80c1b
Reviewed-o... | content/browser/devtools/shared_worker_devtools_agent_host.cc | cc | 2018-01-23T05:20:27Z |
protected virtual void FetchDataFromXmlNode(XmlReader reader, MetadataResult<T> itemResult)
{
var item = itemResult.Item;
var nfoConfiguration = _config.GetNfoConfiguration();
UserItemData? userData = null;
if (!string.IsNullOrWhiteSpace(nfoConfiguration.UserId))... | protected virtual void FetchDataFromXmlNode(XmlReader reader, MetadataResult<T> itemResult)
{
var item = itemResult.Item;
var nfoConfiguration = _config.GetNfoConfiguration();
UserItemData? userData = null;
if (!string.IsNullOrWhiteSpace(nfoConfiguration.UserId))... | null | null | null | https://github.com/jellyfin/jellyfin/commit/d3d9311f486e2a33b40cf0db7958cf5faaf22124 | Merge remote-tracking branch 'upstream/master' into client-logger | MediaBrowser.XbmcMetadata/Parsers/BaseNfoParser.cs | cs | 2021-11-05T19:12:37Z |
def audit
audit_args.parse
Homebrew.auditing = true
inject_dump_stats!(FormulaAuditor, /^audit_/) if args.audit_debug?
formula_count = 0
problem_count = 0
corrected_problem_count = 0
new_formula_problem_count = 0
new_formula = args.new_formula?
strict = new_formula || args.strict?
... | def audit
audit_args.parse
Homebrew.auditing = true
inject_dump_stats!(FormulaAuditor, /^audit_/) if args.audit_debug?
formula_count = 0
problem_count = 0
corrected_problem_count = 0
new_formula_problem_count = 0
new_formula = args.new_formula?
strict = new_formula || args.strict?
... | null | cwe-078 | null | github.com/konqui/brew/commit/0304545d0cb334c5f24be63e1c639ff8989f7226 | use File.open instead of Kernel.open | audit.rb | rb | null |
@GET
public Response listAllMyBuckets(@HeaderParam("Authorization") final String authorization) {
return S3RestUtils.call("", () -> {
final String user = getUser(authorization);
List<URIStatus> objects = new ArrayList<>();
try {
objects = mMetaFS.listStatus(new AlluxioURI("/"));
}... | @GET
public Response listAllMyBuckets(@HeaderParam("Authorization") final String authorization) {
return S3RestUtils.call("", () -> {
final String user = getUser(authorization);
List<URIStatus> objects = new ArrayList<>();
try {
objects = mMetaFS.listStatus(new AlluxioURI("/"));
}... | null | null | null | https://github.com/Alluxio/alluxio/commit/341673e0cbabad2b3495f959f87215e232e0a290 | Update ListMultipartUploads to prevent leaking other users' upload IDs
Cherry-pick of existing commit.
orig-pr: Alluxio/alluxio#16174
orig-commit: Alluxio/alluxio@9364fd01903a1967294d64246c8b11841c9d22d1
orig-commit-author: Christopher Zhu <christopher.zhu.9@gmail.com>
pr-link: Alluxio/alluxio#16178
change-id: cid-9a... | core/server/proxy/src/main/java/alluxio/proxy/s3/S3RestServiceHandler.java | java | 2022-09-12T08:12:11Z |
protected boolean decodeMode( AztecPyramid locator, AztecCode marker ) {
marker.locator.setTo(locator);
Structure type = locator.layers.size == 1 ? Structure.COMPACT : Structure.FULL;
// Read the pixel values once
readModeBitsFromImage(locator);
// Determine the orientation
int orientation = selectOrienta... | protected boolean decodeMode( AztecPyramid locator, AztecCode marker ) {
marker.locator.setTo(locator);
Structure type = locator.layers.size == 1 ? Structure.COMPACT : Structure.FULL;
// Read the pixel values once
readModeBitsFromImage(locator);
// Determine the orientation
int orientation = selectOrienta... | null | null | null | https://github.com/lessthanoptimal/BoofCV/commit/b4ab8851abb65b8fb62fff814df343b31b9b3e72 | Aztec
- Fixed crash bug when decoding corrupted markers
- GUI shows if it is transposed or not | main/boofcv-recognition/src/main/java/boofcv/alg/fiducial/aztec/AztecDecoderImage.java | java | 2022-02-20T01:05:03Z |
export declare function setDeepProperty(obj: any, propertyPath: string, value: any): void;
export declare function getDeepProperty(obj: any, propertyPath: string): any; | function setDeepProperty(obj, propertyPath, value) {
if (!obj) {
throw new Error("Invalid object");
}
if (!propertyPath) {
throw new Error("Invalid property path");
}
const pathParts = splitPath(propertyPath);
const pathPartsLen = pathParts.length;
for (let i = 0; i < pathPar... | CVE-2020-7638 | CWE-1321 | confinit through 0.3.0 is vulnerable to Prototype Pollution.The 'setDeepProperty' function could be tricked into adding or modifying properties of 'Object.prototype' using a '__proto__' payload. | https://github.com/davideicardi/confinit/commit/a34e06ca5c1c8b047ef112ef188b2fe30d2a1eab | Close #1 | index.js | js | 2020-04-06T13:15:00Z |
@Override
public boolean prepareAnimate(long duration, Runnable startListener) {
mAnimatableIcon = (Animatable) mForegroundDrawable;
mIconAnimator = ValueAnimator.ofInt(0, 1);
mIconAnimator.setDuration(duration);
mIconAnimator.addListener(new Animator.AnimatorList... | @Override
public boolean prepareAnimate(long duration, Runnable startListener) {
mAnimatableIcon = (Animatable) mForegroundDrawable;
mIconAnimator = ValueAnimator.ofInt(0, 1);
mIconAnimator.setDuration(duration);
mIconAnimator.addListener(new Animator.AnimatorList... | null | null | null | https://github.com/omnirom/android_frameworks_base/commit/bb8c33e73e0389ac23e1c24b08f4e82d54532fdc | Catch exception when parsing faulty AVD
If an application uses an animated vector drawable for its splashsreen
but the files generates an error (like a target not found for the
animation), we catch it and log it instead of crashing sysui
Test: manual, created an AVD with a <target> tag referencing a non
exising group... | libs/WindowManager/Shell/src/com/android/wm/shell/startingsurface/SplashscreenIconDrawableFactory.java | java | 2021-09-29T12:05:46Z |
private void eliminateSelfLoops(Collection<CFANode> pNodes) throws InterruptedException {
List<CFANode> toAdd = new ArrayList<>();
for (CFANode node : pNodes) {
this.shutdownNotifier.shutdownIfNecessary();
for (CFAEdge edge : CFAUtils.leavingEdges(node)) {
CFANode successor = edge.getSucces... | private void eliminateSelfLoops(Collection<CFANode> pNodes) throws InterruptedException {
List<CFANode> toAdd = new ArrayList<>();
for (CFANode node : pNodes) {
this.shutdownNotifier.shutdownIfNecessary();
for (CFAEdge edge : CFAUtils.leavingEdges(node)) {
CFANode successor = edge.getSucces... | null | null | null | https://github.com/sosy-lab/cpachecker/commit/8556668bbe4cb4982272739e7f217cce4ff4fe0f | Avoid infinite loop by recording visited nodes
- Related to the OOM error of #956
git-svn-id: https://svn.sosy-lab.org/software/cpachecker/branches/cfa-single-loop-transformation@40445 4712c6d2-40bb-43ae-aa4b-fec3f1bdfe4c | src/org/sosy_lab/cpachecker/cfa/postprocessing/global/singleloop/CFASingleLoopTransformation.java | java | 2022-05-10T04:04:39Z |
void decNumConnections() {
ASSERT(num_listener_connections_ > 0);
--num_listener_connections_;
} | void decNumConnections() {
ASSERT(num_listener_connections_ > 0);
--num_listener_connections_;
config_->openConnections().dec();
} | CVE-2020-8663 | CWE-400 | Envoy version 1.14.2, 1.13.2, 1.12.4 or earlier may exhaust file descriptors and/or memory when accepting too many connections. | https://github.com/envoyproxy/envoy/commit/dfddb529e914d794ac552e906b13d71233609bf7 | listener: Add configurable accepted connection limits (#153)
Add support for per-listener limits on accepted connections.
Signed-off-by: Tony Allen <tony@allen.gg> | null | null | 2020-06-02T03:29:14Z |
protected AzureAppService getOrCreateAzureAppServiceClient() {
return Azure.az(AzureAppService.class);
} | protected AzureAppService getOrCreateAzureAppServiceClient() throws AzureExecutionException {
if (appServiceClient == null) {
try {
final Account account = getAzureAccount();
final List<Subscription> subscriptions = account.getSubscriptions();
final St... | null | null | null | https://github.com/microsoft/azure-maven-plugins/commit/292af215fea14f0934649c0e46aff657bbd02d35 | Fix authentication issue for web app maven plugin with new account library | azure-webapp-maven-plugin/src/main/java/com/microsoft/azure/maven/webapp/AbstractWebAppMojo.java | java | 2021-03-16T08:56:31Z |
static int spapr_tce_table_realize(DeviceState *dev)
{
sPAPRTCETable *tcet = SPAPR_TCE_TABLE(dev);
if (kvm_enabled()) {
tcet->table = kvmppc_create_spapr_tce(tcet->liobn,
tcet->nb_table <<
tcet->page_shift,
... | static int spapr_tce_table_realize(DeviceState *dev)
{
sPAPRTCETable *tcet = SPAPR_TCE_TABLE(dev);
uint64_t window_size = (uint64_t)tcet->nb_table << tcet->page_shift;
if (kvm_enabled() && !(window_size >> 32)) {
tcet->table = kvmppc_create_spapr_tce(tcet->liobn,
... | null | null | null | qemu/commit/12fd28535891572be7aaf862a03019257dafa425 | spapr_iommu: Disable in-kernel IOMMU tables for >4GB windows
The existing KVM_CREATE_SPAPR_TCE ioctl only support 4G windows max as
the window size parameter to the kernel ioctl() is 32-bit so
there's no way of expressing a TCE window > 4GB.
We are going to add huge DMA windows support so this will create small
windo... | ./qemu/hw/ppc/spapr_iommu.c | c | 2015-05-07T05:33:28Z |
public void invalidate() {
for (RenderMaterial<?, ?> material : materials.values()) {
material.delete();
}
instances.clear();
} | public void invalidate() {
for (RenderMaterial<?, ?> material : materials.values()) {
material.delete();
}
instances.clear();
tickableInstances.clear();
} | null | null | null | https://github.com/Jozufozu/Flywheel/commit/9d77f85b9442910a3f595c58f41cb3363093384e | Fix crash on world reload. | src/main/java/com/simibubi/create/foundation/render/backend/instancing/InstancedTileRenderer.java | java | 2021-03-03T21:10:44Z |
function bp_core_admin_slugs_options() {
// Get the existing WP pages.
$existing_pages = bp_core_get_directory_page_ids();
// Set up an array of components (along with component names) that have directory pages.
$directory_pages = bp_core_admin_get_directory_pages();
if ( !empty( $directory_pages ) ) : ?>
<h... | function bp_core_admin_slugs_options() {
// Get the existing WP pages.
$existing_pages = bp_core_get_directory_page_ids();
// Set up an array of components (along with component names) that have directory pages.
$directory_pages = bp_core_admin_get_directory_pages();
if ( !empty( $directory_pages ) ) : ?>
<h... | CVE-2020-5244 | CWE-200,CWE-284 | In BuddyPress before 5.1.2, requests to a certain REST API endpoint can result in private user data getting exposed. Authentication is not needed. This has been patched in version 5.1.2. | https://github.com/buddypress/BuddyPress/commit/39294680369a0c992290577a9d740f4a2f2c2ca3 | Admin: Sanitize external links to activated BP component pages.
Props imath.
See #8235.
git-svn-id: https://buddypress.svn.wordpress.org/trunk@12549 cdf35c40-ae34-48e0-9cc9-0c9da1808c22 | bp-core-admin-slugs.php | php | 2020-02-24T18:15:00Z |
static int vorbis_parse_setup_hdr_residues(vorbis_context *vc){
GetBitContext *gb=&vc->gb;
uint_fast8_t i, j, k;
vc->residue_count=get_bits(gb, 6)+1;
vc->residues=av_mallocz(vc->residue_count * sizeof(vorbis_residue));
AV_DEBUG(" There are %d residues. \n", vc->residue_count);
for(i=0;i<vc->resi... | static int vorbis_parse_setup_hdr_residues(vorbis_context *vc){
GetBitContext *gb=&vc->gb;
uint_fast8_t i, j, k;
vc->residue_count=get_bits(gb, 6)+1;
vc->residues=av_mallocz(vc->residue_count * sizeof(vorbis_residue));
AV_DEBUG(" There are %d residues. \n", vc->residue_count);
for(i=0;i<vc->resi... | null | null | null | FFmpeg/commit/36b7e983a664d20dc3809704b47cf8d59895b4de | Check begin/end/partition_size.
23_vorbis_sane_partition.patch by chrome.
Also this should be better documented but i prefer not to leave potential
security issues open due to missing documentation.
Originally committed as revision 19996 to svn://svn.ffmpeg.org/ffmpeg/trunk | ./ffmpeg/libavcodec/vorbis_dec.c | c | 2009-09-23T13:08:48Z |
@Override
public void explode(String war, String exploded)
{
if (exists(exploded))
{
delete(exploded);
}
byte[] buf = new byte[1024];
try (JarFile archive = new JarFile(new File(war).getAbsoluteFile()))
{
Enumeration e = archive.entries()... | @Override
public void explode(String war, String exploded)
{
if (exists(exploded))
{
delete(exploded);
}
Path explodedPath = new File(exploded).toPath();
try (JarFile archive = new JarFile(new File(war).getAbsoluteFile()))
{
Enumeration e ... | null | null | null | https://github.com/codehaus-cargo/cargo/commit/f58714a58894d1a7cd193444d15c27c391fd1f91 | Fix Zip Slip vulnerability | core/api/util/src/main/java/org/codehaus/cargo/util/DefaultFileHandler.java | java | 2022-08-13T19:43:10Z |
public static Optional<List<String>> readData() {
try {
//if data.txt does not exist it will be created and filled with initial values
if (!DataFile.dataFile().exists()) {
Files.createFile(Paths.get(DataFile.dataFile().getPath()));
initFile(DataFile.dataFi... | public static Optional<List<String>> readData() {
try {
//if data.txt does not exist it will be created and filled with initial values
if (!DataFile.dataFile().exists()) {
Files.createFile(Paths.get(DataFile.dataFile().getPath()));
initFile(DataFile.dataFi... | null | null | null | https://github.com/mars-sim/mars-sim/commit/15efb256a26aaa9e4518de304938fb98e507569a | Revise checking a person's settlement
r6360
2021-10-28
Note: since the last few commits, isInSettlement() will check
if a person is inside
## FIX
1. Avoid NPE
- Reorder the checking of a person's whereabout in
getCurrentMissionLocation() in Mission.
- Revise getEVASparePartsForTrip() in RoverMission.
## ... | mars-sim-fxgl/src/main/java/org/mars_sim/fxgl/data/ReadGameData.java | java | 2021-10-29T02:27:01Z |
static int xan_wc3_decode_frame(XanContext *s) {
int width = s->avctx->width;
int height = s->avctx->height;
int total_pixels = width * height;
unsigned char opcode;
unsigned char flag = 0;
int size = 0;
int motion_x, motion_y;
int x, y;
unsigned char *opcode_buffer = s->buffer1;
... | static int xan_wc3_decode_frame(XanContext *s) {
int width = s->avctx->width;
int height = s->avctx->height;
int total_pixels = width * height;
unsigned char opcode;
unsigned char flag = 0;
int size = 0;
int motion_x, motion_y;
int x, y;
unsigned char *opcode_buffer = s->buffer1;
... | null | null | null | FFmpeg/commit/3e0757c2a87c8cf3e452f67bca279001c64cedff | xan: Fixed out of bound accesses in xan_unpack()
Signed-off-by: Janne Grunau <janne-libav@jannau.net> | ./ffmpeg/libavcodec/xan.c | c | 2011-09-29T03:12:07Z |
char *my_asctime(time_t t)
{
struct tm *tm;
char *str;
int len;
tm = localtime(&t);
str = g_strdup(asctime(tm));
len = strlen(str);
if (len > 0) str[len-1] = '\0';
return str;
} | char *my_asctime(time_t t)
{
struct tm *tm;
char *str;
int len;
tm = localtime(&t);
if (tm == NULL)
return g_strdup("???");
str = g_strdup(asctime(tm));
len = strlen(str);
if (len > 0) str[len-1] = '\0';
return str;
} | CVE-2017-10966 | CWE-416 | An issue was discovered in Irssi before 1.0.4. While updating the internal nick list, Irssi could incorrectly use the GHashTable interface and free the nick while updating it. This would then result in use-after-free conditions on each access of the hash table. | https://github.com/irssi/irssi/commit/5e26325317c72a04c1610ad952974e206384d291 | Merge branch 'security' into 'master'
Security
Closes #10
See merge request !17 | src/core/misc.c | c | 2017-07-05T14:47:30Z |
def wrapper(ok, store_ctx):
cert = X509.__new__(X509)
cert._x509 = _lib.X509_STORE_CTX_get_current_cert(store_ctx)
error_number = _lib.X509_STORE_CTX_get_error(store_ctx)
error_depth = _lib.X509_STORE_CTX_get_error_depth(store_ctx)
index = _lib.SSL_get_ex_dat... | def wrapper(ok, store_ctx):
x509 = _lib.X509_STORE_CTX_get_current_cert(store_ctx)
res = _lib.X509_up_ref(x509)
_openssl_assert(res == 1)
cert = X509._from_raw_x509_ptr(x509)
error_number = _lib.X509_STORE_CTX_get_error(store_ctx)
error_depth = _li... | null | null | null | https://github.com/pyca/pyopenssl/commit/915d1d82c0fed8c656d1104b71728c1cf9747ede | fix a memory leak and a potential UAF and also #722 | src/OpenSSL/SSL.py | py | 2017-11-29T10:20:33Z |
QemuConsole *qemu_console_lookup_by_device(DeviceState *dev, uint32_t head)
{
Error *local_err = NULL;
Object *obj;
uint32_t h;
int i;
for (i = 0; i < nb_consoles; i++) {
if (!consoles[i]) {
continue;
}
obj = object_property_get_link(OBJECT(consoles[i]),
... | QemuConsole *qemu_console_lookup_by_device(DeviceState *dev, uint32_t head)
{
Object *obj;
uint32_t h;
int i;
for (i = 0; i < nb_consoles; i++) {
if (!consoles[i]) {
continue;
}
obj = object_property_get_link(OBJECT(consoles[i]),
... | null | null | null | qemu/commit/afff2b15e89ac81c113f2ebfd729aaa02b40edb6 | console: Abort on property access errors
All defined properties of QemuConsole are mandatory and no access to them
should fail. Nevertheless not checking returned errors is bad because in case
of unexpected failure it will hide the bug and cause a memory leak.
Abort in case of unexpected property access errors. This ... | ./qemu/ui/console.c | c | 2014-04-24T14:15:58Z |
int inet6_sk_rebuild_header(struct sock *sk)
{
struct ipv6_pinfo *np = inet6_sk(sk);
struct dst_entry *dst;
dst = __sk_dst_check(sk, np->dst_cookie);
if (!dst) {
struct inet_sock *inet = inet_sk(sk);
struct in6_addr *final_p, final;
struct flowi6 fl6;
memset(&fl6, 0, sizeof(fl6));
fl6.flowi6_proto = sk... | int inet6_sk_rebuild_header(struct sock *sk)
{
struct ipv6_pinfo *np = inet6_sk(sk);
struct dst_entry *dst;
dst = __sk_dst_check(sk, np->dst_cookie);
if (!dst) {
struct inet_sock *inet = inet_sk(sk);
struct in6_addr *final_p, final;
struct flowi6 fl6;
memset(&fl6, 0, sizeof(fl6));
fl6.flowi6_proto = sk... | null | CWE-416, CWE-284, CWE-264 | null | https://github.com/torvalds/linux/commit/45f6fad84cc305103b28d73482b344d7f5b76f39 | ipv6: add complete rcu protection around np->opt
This patch addresses multiple problems :
UDP/RAW sendmsg() need to get a stable struct ipv6_txoptions
while socket is not locked : Other threads can change np->opt
concurrently. Dmitry posted a syzkaller
(http://github.com/google/syzkaller) program desmonstrating
use-a... | null | null | 2015-11-30T03:37:57Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.