message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
Fixed loading wheel on mobile UI
The loading wheel correctly disapears when the loading is completed
on the mobile search UI. | @@ -13,6 +13,12 @@ AjaxFranceLabs.PrevisualizeResultWidget = AjaxFranceLabs.ResultWidget.extend({
afterRequest : function() {
var data = this.manager.response, elm = $(this.elm),self=this;
+
+ if (!this.isMobile)
+ elm.find('.doc_list').empty();
+ else
+ elm.find('.doc_list .bar-loader').remove();
+
var querySolr = get... |
Use more general sizeof to get arch "bitness" | @@ -211,10 +211,10 @@ util_files = files(
'src/mesa/util/os_time.c',
)
-if target_machine.cpu_family() == 'x86_64'
+if cc.sizeof('void*') == 8
pre_args += '-DMANGOHUD_ARCH="64bit"'
endif
-if target_machine.cpu_family() == 'x86'
+if cc.sizeof('void*') == 4
pre_args += '-DMANGOHUD_ARCH="32bit"'
endif
|
Update badge locations | @@ -14,11 +14,11 @@ Agnostic Cloud Provider
Azure
-[](https://oe-jenkins-dev.westeurope.cloudapp.azure.com/job/Nightly/)
-[ will howe
## Assumptions
-1.
-2. False positives for change tracking algorithms are only a minor problem.
-3. There is no reason to modify or delete existing `meta:/` keys.
-4. Newly generated `meta:/...` keys can
+1. False positi... |
improve SSL leak fix redis/hiredis#896
Free SSL object when redisSSLConnect fails but avoid doing that for
callers of redisInitiateSSL who are supposed to manager their own SSL
object. | @@ -351,7 +351,6 @@ static int redisSSLConnect(redisContext *c, SSL *ssl) {
}
hi_free(rssl);
- SSL_free(ssl);
return REDIS_ERR;
}
@@ -393,7 +392,11 @@ int redisInitiateSSLWithContext(redisContext *c, redisSSLContext *redis_ssl_ctx)
}
}
- return redisSSLConnect(c, ssl);
+ if (redisSSLConnect(c, ssl) != REDIS_OK) {
+ got... |
change NVME pblock | resize_pblock pblock_action -remove CLOCKREGION_X3Y4:CLOCKREGION_X5Y4
resize_pblock pblock_action -remove CLOCKREGION_X3Y3:CLOCKREGION_X3Y3
-resize_pblock pblock_snap -add CLOCKREGION_X3Y3:CLOCKREGION_X5Y3
-
+resize_pblock pblock_snap -add CLOCKREGION_X3Y3:CLOCKREGION_X5Y4
+resize_pblock pblock_snap -add CLOCKREGION_X4... |
http: golf out an assignment | @@ -48,8 +48,7 @@ struct event_t {
BPF_PERF_OUTPUT(events);
int trace_receive_request(struct pt_regs *ctx) {
- struct event_t ev = {};
- ev.type = HTTP_EVENT_RECEIVE_REQ;
+ struct event_t ev = { .type = HTTP_EVENT_RECEIVE_REQ };
bpf_usdt_readarg(1, ctx, &ev.conn_id);
bpf_usdt_readarg(2, ctx, &ev.req_id);
bpf_usdt_reada... |
docs: remove chapter numbers and make them common to both targets | @@ -14,9 +14,9 @@ Hardware description
The {IDF_TARGET_NAME} has a number of eFuses which can store system and user parameters. Each eFuse is a one-bit field which can be programmed to 1 after which it cannot be reverted back to 0.
Some of system parameters are using these eFuse bits directly by hardware modules and ha... |
ks: Remove unused keyCompareByNameCase | @@ -533,51 +533,6 @@ static int keyCompareByName (const void * p1, const void * p2)
return ret;
}
-/**
- * @brief Compare by unescaped name only, ignoring case
- *
- * @internal
- *
- * @param p1
- * @param p2
- *
- * @return
- */
-static int keyCompareByNameCase (const void * p1, const void * p2)
-{
- Key * key1 = *(K... |
fixed bug in status output on AP-LESS handshake | @@ -1673,7 +1673,7 @@ if(eapauth->type == EAPOL_KEY)
{
if((statusout & STATUS_EAPOL) == STATUS_EAPOL)
{
- printtimenet(macfrx->addr1, macfrx->addr1);
+ printtimenet(macfrx->addr2, macfrx->addr1);
apzeiger = getessid(macfrx->addr1);
if(apzeiger != NULL)
{
|
Handle rto of 1 ms | @@ -2383,7 +2383,9 @@ sctp_timer_start(int t_type, struct sctp_inpcb *inp, struct sctp_tcb *stcb,
}
rndval = sctp_select_initial_TSN(&inp->sctp_ep);
jitter = rndval % to_ticks;
+ if (to_ticks > 1) {
to_ticks >>= 1;
+ }
if (jitter < (UINT32_MAX - to_ticks)) {
to_ticks += jitter;
} else {
|
SOVERSION bump to version 2.28.8 | @@ -66,7 +66,7 @@ set(LIBYANG_VERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION}.${LIBYANG_
# set version of the library
set(LIBYANG_MAJOR_SOVERSION 2)
set(LIBYANG_MINOR_SOVERSION 28)
-set(LIBYANG_MICRO_SOVERSION 7)
+set(LIBYANG_MICRO_SOVERSION 8)
set(LIBYANG_SOVERSION_FULL ${LIBYANG_MAJOR_SOVERSION}.${LIBYANG_M... |
Fix issues reported by static analysis. | @@ -8484,8 +8484,9 @@ GetDDRCapacities(
NVDIMM_ENTRY();
- if (NULL == pDDRRawCapacity) {
- NVDIMM_DBG("A pointer is null.");
+ if (pDDRRawCapacity == NULL ||
+ (pDDRInaccessibleCapacity != NULL && (pDDRCacheCapacity == NULL || pDDRVolatileCapacity == NULL))) {
+ NVDIMM_DBG("Invalid parameter");
goto Finish;
}
|
Only send custom extensions where we have received one in the ClientHello
We already did this for ServerHello and EncryptedExtensions. We should be
doing it for Certificate and HelloRetryRequest as well. | @@ -181,11 +181,10 @@ int custom_ext_add(SSL *s, int context, WPACKET *pkt, X509 *x, size_t chainidx,
if ((context & (SSL_EXT_TLS1_2_SERVER_HELLO
| SSL_EXT_TLS1_3_SERVER_HELLO
- | SSL_EXT_TLS1_3_ENCRYPTED_EXTENSIONS)) != 0) {
- /*
- * For ServerHello/EncryptedExtensions only send extensions present
- * in ClientHello.
... |
Yajl: Naive approach for generating empty arrays | @@ -93,8 +93,7 @@ static int elektraGenOpenValue (yajl_gen g, const Key * next)
ELEKTRA_LOG_DEBUG ("next: \"%.*s\"", (int) last.size, last.current);
- const char * meta = keyString (keyGetMeta (next, "array"));
- if (*meta == '\0')
+ if (!strcmp (last.current, "###empty_array"))
{
ELEKTRA_LOG_DEBUG ("GEN empty array in... |
Docker: Remove PEGTL source code from image | @@ -125,8 +125,10 @@ RUN cd /tmp \
# PEGTL
ARG PEGTL_VERSION=2.7.1
-RUN git clone --branch ${PEGTL_VERSION} --depth 1 https://github.com/taocpp/PEGTL.git \
- && cp -R PEGTL/include/tao /usr/local/include
+RUN cd /tmp \
+ && git clone --branch ${PEGTL_VERSION} --depth 1 https://github.com/taocpp/PEGTL.git \
+ && cp -R P... |
sdcard_image-rpi.bbclass: Remove SDIMG_COMPRESSION
Using SDIMG_COMPRESSION variable to choose compression type for
produced images is deprecated. IMAGE_FSTYPES should be used instead.
This patch removes any response to SDIMG_COMPRESSION within
sdcard_image-rpi.bbclass | @@ -64,13 +64,6 @@ do_image_rpi_sdimg[recrdeps] = "do_build"
# SD card image name
SDIMG = "${IMGDEPLOYDIR}/${IMAGE_NAME}.rootfs.rpi-sdimg"
-# Compression method to apply to SDIMG after it has been created. Supported
-# compression formats are "gzip", "bzip2" or "xz". The original .rpi-sdimg file
-# is kept and a new co... |
On interface deletion - make sure any vlan qinq table is cleared | @@ -342,6 +342,7 @@ ethernet_delete_interface (vnet_main_t * vnm, u32 hw_if_index)
if (vlan_table->vlans[idx].qinqs)
{
pool_put_index (em->qinq_pool, vlan_table->vlans[idx].qinqs);
+ vlan_table->vlans[idx].qinqs = 0;
}
}
pool_put_index (em->vlan_pool, main_intf->dot1q_vlans);
@@ -355,6 +356,7 @@ ethernet_delete_interfa... |
Added latest schema changes | @@ -429,6 +429,18 @@ Describes settings for the trace capture device.
<td>complexType</td>
<td>0..*</td>
</tr>
+ <tr>
+ <th>Attributes</th>
+ <th>Description</th>
+ <th>Type</th>
+ <th>Use</th>
+ </tr>
+ <tr>
+ <td>type</td>
+ <td>Trace capture type: parallel or HSSTP.</td>
+ <td>xs:string</td>
+ <td>required</td>
+ </... |
fix new 2019 crash when deleting asset history when the Evaluation Manager is on
by turning the EM off while deleting asset history. | @@ -86,6 +86,19 @@ houdiniEngine_deleteHistory(string $node)
// deletes it for all the objects parented under the asset, then deletes the asset
string $assetNode = $upstreamAssets[0];
+ if($assetNode == "") {
+ print "Error: the selected node does not appear to have asset history: use the regular Delete History.\n";
+ ... |
Fix NULL pointer in picoquicdemo | @@ -691,7 +691,9 @@ int quic_client(const char* ip_address_text, int server_port,
/* Wait for packets */
if (ret == 0) {
+ if (config->multipath_alternative_ip != NULL) {
picoquic_store_text_addr(&loop_cb.client_alt_address, config->multipath_alternative_ip, 0);
+ }
loop_cb.cnx_client = cnx_client;
loop_cb.force_migrat... |
FIPS Checksums CI: use separate directories for the checkouts | @@ -9,16 +9,19 @@ jobs:
run: |
sudo apt-get update
sudo apt-get -yq --no-install-suggests --no-install-recommends --force-yes install unifdef
- - uses: actions/checkout@v2
- with:
- ref: ${{ github.event.pull_request.base.sha }}
- name: create build dirs
run: |
mkdir ./build-pristine
+ mkdir ./source-pristine
mkdir ./b... |
tools/ci/docker/linux/Dockerfile: add libv4l-dev | @@ -245,11 +245,12 @@ RUN apt-get update -qq && DEBIAN_FRONTEND="noninteractive" apt-get install -y -q
libasound2-dev libasound2-dev:i386 \
libc6-dev-i386 \
libcurl4-openssl-dev \
- libncurses5-dev \
libmad0-dev:i386 \
+ libncurses5-dev \
libpulse-dev libpulse-dev:i386 \
libpython2.7 \
libtinfo5 \
+ libv4l-dev libv4l-d... |
Upgrade tarketSdkVersion to 29
This fixes a lint warning. | apply plugin: 'com.android.application'
android {
- compileSdkVersion 27
+ compileSdkVersion 29
defaultConfig {
applicationId "com.genymobile.scrcpy"
minSdkVersion 21
- targetSdkVersion 27
+ targetSdkVersion 29
versionCode 9
versionName "1.8"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
use strstr to find part of essid (option: -E) | @@ -381,17 +381,18 @@ hcx_t *zeigerhcx;
FILE *fhhcx;
long int c;
long int rw = 0;
-int essid_len;
-
char essidoutname[PATH_MAX +1];
-essid_len = strlen(essidname);
+char essidstr[34];
+
snprintf(essidoutname, PATH_MAX, "%s.hccapx", essidname);
c = 0;
while(c < hcxrecords)
{
zeigerhcx = hcxdata +c;
- if(memcmp(essidname... |
docs/library/pyb.DAC: Fix typo in markup to balance quotes. | @@ -79,7 +79,7 @@ Methods
.. method:: DAC.init(bits=8, \*, buffering=None)
Reinitialise the DAC. *bits* can be 8 or 12. *buffering* can be
- ``None``, ``False`` or ``True`; see above constructor for the meaning
+ ``None``, ``False`` or ``True``; see above constructor for the meaning
of this parameter.
.. method:: DAC.d... |
Verify data flashed when automation is enabled
If automation is enabled then read back every page written to verify
the contents are correct. This allows devices with worn out flash to
be detected. | @@ -110,10 +110,28 @@ static error_t target_flash_program_page(uint32_t addr, const uint8_t *buf, uint
return ERROR_WRITE;
}
+ if (config_get_automation_allowed()) {
+ // Verify data flashed if in automation mode
+ while (write_size > 0) {
+ uint8_t rb_buf[16];
+ uint32_t verify_size = MIN(write_size, sizeof(rb_buf));
... |
[catboost] add todo for quantized pool interface | @@ -39,6 +39,7 @@ namespace NCB {
// in column 5 will be present in `Chunks[1]`.
//
THashMap<size_t, size_t> TrueFeatureIndexToLocalIndex;
+ // TODO(yazevnul): replace with native C++ `TPoolQuantizationSchema`
NIdl::TPoolQuantizationSchema QuantizationSchema;
TVector<EColumn> ColumnTypes;
TDeque<TVector<TChunkDescripti... |
There is no displacement expression function | @@ -2182,11 +2182,6 @@ smallest neighbor Function: ``smallest_neighbor()`` : ``smallest_neighbor(expr0)
neighbor average Function: ``neighbor_average()`` : ``neighbor_average(expr0)``
No description available.
-.. _Displacement_Expression_Function:
-
-Displacement Function: ``displacement()`` : ``displacement(expr0)``
... |
Configure JAVA_HOME correctly for Cooja | @@ -100,7 +100,6 @@ RUN export uid=1000 gid=1000 && \
USER user
# Environment variables
-ENV JAVA_HOME /usr/lib/jvm/default-java
ENV HOME /home/user
ENV CONTIKI_NG ${HOME}/contiki-ng
ENV COOJA ${CONTIKI_NG}/tools/cooja
@@ -113,6 +112,7 @@ RUN echo "#!/bin/bash\nant -Dbasedir=${COOJA} -f ${COOJA}/build.xml run" > ${HOM
... |
Implement ++peek so the app can by scried | wipe:(open:watcher +.act)
==
::
+++ peek-x
+ |= pax=path
+ ^- (unit (unit [%noun *]))
+ ?. ?=([@ *] pax) ~
+ =+ eye=(~(get by eyes) i.pax)
+ ?~ eye [~ ~]
+ :: /name: all logs
+ ::
+ ?~ t.pax ``[%noun logs.u.eye]
+ :: /name/num: most recent num logs
+ ::
+ =+ num=(slaw %ud i.t.pax)
+ ?^ num ``[%noun (scag u.num logs.u.e... |
py/gc: Reduce code size by specialising VERIFY_MARK_AND_PUSH macro.
This macro is written out explicitly in the two locations that it is used
and then the code is optimised, opening possibilities for further
optimisations and reducing code size:
unix: -48
minimal CROSS=1: -32
stm32: -32 | @@ -203,24 +203,6 @@ bool gc_is_locked(void) {
#endif
#endif
-// ptr should be of type void*
-#define VERIFY_MARK_AND_PUSH(ptr) \
- do { \
- if (VERIFY_PTR(ptr)) { \
- size_t _block = BLOCK_FROM_PTR(ptr); \
- if (ATB_GET_KIND(_block) == AT_HEAD) { \
- /* an unmarked head, mark it, and push it on gc stack */ \
- TRACE_M... |
bluetooth:Fix invalid memory access in gatt server deinit | @@ -2712,9 +2712,11 @@ int bt_gatt_server_deinitialize(void)
gatt_server_list = NULL;
#else
bt_gatt_server_s *serv = (bt_gatt_server_s *)sq_peek(&gatt_server_list);
+ bt_gatt_server_s *curr_serv = NULL;
while (serv) {
- bt_gatt_server_destroy(serv);
+ curr_serv = serv;
serv = (bt_gatt_server_s *)sq_next(serv);
+ bt_gat... |
NthElements
Note: mandatory check (NEED_CHECK) was skipped | @@ -639,3 +639,13 @@ template <class It>
std::pair<It, It> MinMaxElement(It first, It last) {
return std::minmax_element(first, last);
}
+
+template <class TIterator, class TGenerator>
+void Generate(TIterator first, TIterator last, TGenerator generator) {
+ std::generate(first, last, generator);
+}
+
+template <class ... |
same code, a little organization | @@ -51,13 +51,13 @@ EOS
return ::Rack::Builder.parse_file filename
end
- def call
- if ARGV[0] =~ /(\-\?)|(help)|(\?)|(h)|(\-h)$/
- return print_help
+ def filename_argument
+ return ((ARGV[-2].to_s[0] != '-' || ARGV[-2].to_s == '-warmup' || ARGV[-2].to_s == '-v' || ARGV[-2].to_s == '-q' || (ARGV[-2].to_s[0] == '-' && ... |
libppd: In IPP-attr-to-PPD-option auto mapper consider "ColorMode" also with prefix
This way we also cover "cupsColorMode" for example which appears in
auto-generated PPDs for driverless IPP printers (in case we cannot
print directly to the printer but only have access via a CUPS queue). | @@ -2233,7 +2233,7 @@ ppdCacheAssignPresets(ppd_file_t *ppd,
}
/*
- * Color/Gray - print-color-mode
+ * Color/Monochrome - print-color-mode
*/
/* If we have a color device, check whether this option sets mono or
@@ -2257,7 +2257,7 @@ ppdCacheAssignPresets(ppd_file_t *ppd,
properties->sets_color = 1;
}
else if (strcasec... |
Ensure we use a dgram mem BIO for the DTLS record layer | @@ -1893,6 +1893,9 @@ int ssl_set_new_record_layer(SSL_CONNECTION *s, int version,
&& level != OSSL_RECORD_PROTECTION_LEVEL_NONE)
epoch = DTLS_RECORD_LAYER_get_r_epoch(&s->rlayer) + 1; /* new epoch */
+ if (SSL_CONNECTION_IS_DTLS(s))
+ s->rrlnext = BIO_new(BIO_s_dgram_mem());
+ else
s->rrlnext = BIO_new(BIO_s_mem());
i... |
MIPS: fix inline assembly for FPU | @@ -999,7 +999,7 @@ do { \
#define write_32bit_cp0_set1_register(register,value) \
__asm__ __volatile__( \
- "ctc0\t%0,"STR(register)"\n\t" \
+ "ctc0\t%0,$"STR(register)"\n\t" \
"nop" \
: : "r" (value));
@@ -1037,14 +1037,14 @@ do { \
__asm__ __volatile__( \
".set\tpush\n\t" \
".set\treorder\n\t" \
- "cfc1\t%0,"STR(sou... |
Fix indentation in encode_coding_tree.c
Fixes indentation of a for loop that was causing a misleading
indentation warning on GCC.
Fixes | @@ -707,18 +707,22 @@ static uint8_t inline intra_mode_encryption(encoder_state_t * const state,
const uint8_t nb_elems[3] = {17, 8, 8};
- if(intra_pred_mode == 26 || intra_pred_mode == 10) /* for correct chroma Inra prediction mode */
+ if (intra_pred_mode == 26 || intra_pred_mode == 10) {
+ // correct chroma intra pr... |
BugID:17731385:[WhiteScan] solve null pointer check after deref | @@ -820,13 +820,15 @@ static int iotx_mc_mask_pubInfo_from(iotx_mc_client_t *c, uint16_t msgId)
/* return: 0, success; NOT 0, fail; */
static int iotx_mc_push_pubInfo_to(iotx_mc_client_t *c, int len, unsigned short msgId, iotx_mc_pub_info_t **node)
{
- int list_number = list_entry_number(&c->list_pub_wait_ack);
+ int l... |
sys/console: NLIP output was not passing through
NLIP output was not passing through when g_console_silence_non_nlip
was set | @@ -170,7 +170,10 @@ console_write(const char *str, int cnt)
if (console_lock(timeout) != OS_OK) {
return;
}
-
+ if (cnt >= 2 && str[0] == CONSOLE_NLIP_DATA_START1 &&
+ str[1] == CONSOLE_NLIP_DATA_START2) {
+ g_is_output_nlip = 1;
+ }
/* If the byte string is non nlip and we are silencing non nlip bytes,
* do not let i... |
Fix MSCV compile error due to function order | @@ -738,39 +738,6 @@ ASTCENC_SIMD_INLINE vfloat4 sqrt(vfloat4 a)
return vfloat4(_mm_sqrt_ps(a.m));
}
-/**
- * @brief Return the dot product for the full 4 lanes, returning scalar.
- */
-static inline float dot(vfloat4 a, vfloat4 b)
-{
-#if (ASTCENC_SSE >= 41) && (ASTCENC_ISA_INVARIANCE == 0)
- return _mm_cvtss_f32(_mm_... |
make fix for fpgadiag CLI change | @@ -45,7 +45,7 @@ class Nlb3Mode(bc.BistMode):
bc.load_gbs(gbs_path, bus_num)
for test, param in self.executables.items():
print "Running fpgadiag {} test...\n".format(test)
- cmd = "fpgadiag {}".format(param)
+ cmd = "fpgadiag -B {} {}".format(bus_num, param)
try:
subprocess.check_call(cmd, shell=True)
except subproce... |
fix Dictionary export
filter function in unity3d editor lib but not in runtime lib which cause compile er | @@ -1934,6 +1934,30 @@ namespace SLua
}
}
+ if (mi.DeclaringType.IsGenericType && mi.DeclaringType.GetGenericTypeDefinition() == typeof(Dictionary<,>))
+ {
+ if (mi.MemberType == MemberTypes.Constructor)
+ {
+ ConstructorInfo constructorInfo = mi as ConstructorInfo;
+ var parameterInfos = constructorInfo.GetParameters(... |
socketfuzzer/vulnserver_cov: check for failing malloc() | @@ -24,6 +24,9 @@ void handleData1(char *data, int len) {
/* Third message is heap overflow */
void handleData2(char *data, int len) {
char *buff = malloc(8);
+ if (!buff) {
+ abort();
+ }
bzero(buff, 8);
memcpy(buff, data, len);
printf("# vulnserver_cov: Handledata2: %s\n", buff);
|
add resizeaspectmouse | @@ -315,6 +315,7 @@ static Button buttons[] = {
{ ClkClientWin, MODKEY, Button1, movemouse, {0} },
{ ClkClientWin, MODKEY, Button2, togglefloating, {0} },
{ ClkClientWin, MODKEY, Button3, resizemouse, {0} },
+ { ClkClientWin, MODKEY | ShiftMask, Button3, resizeaspectmouse, {0} },
{ ClkTagBar, 0, Button1, dragtag, {0} }... |
slist: validate separator position to avoid buffer overflow | @@ -95,6 +95,10 @@ int flb_slist_split_string(struct mk_list *list, const char *str,
if (end < 0) {
end = len - i;
}
+ else if (end == i) {
+ i++;
+ continue;
+ }
p_init = (char *) str + i;
p_end = p_init + end - 1;
@@ -103,6 +107,7 @@ int flb_slist_split_string(struct mk_list *list, const char *str,
while (*p_init == ... |
wip: start building embed at bot-elitebgs.cpp | @@ -17,10 +17,6 @@ void embed_from_json(char *str, size_t len, void *p_embed)
using namespace discord::channel::embed;
dati *embed = (dati*)p_embed;
- add_field(embed, "bla", "blu", false);
- add_field(embed, "bli", "blo", false);
- add_field(embed, "blia", "blyat", false);
-
struct sized_buffer **docs = NULL;
int tota... |
Corrected lines of s2n_errno.c for LGTM. | @@ -163,9 +163,9 @@ const char *s2n_strerror(int error, const char *lang)
return no_such_language;
}
- for (int i = 0; i < (sizeof(EN) / sizeof(struct s2n_error_translation)); i++) {
- if (EN[i].errno_value == error) {
- return EN[i].str;
+ for (int i = 0; i < (sizeof(S2N_ERROR_EN) / sizeof(struct s2n_error_translation... |
Fix Python 3.8 warning | @@ -167,7 +167,7 @@ def emitCfg(opts, cfg):
# We assume that all bare .tcl files are part of Qsys
# and ignore them in Quartus flows. To get a .tcl
# file in Quartus, use QI:<path to>.tcl.
- if (tag is not 'SOURCE_TCL_SCRIPT_FILE'):
+ if (tag != 'SOURCE_TCL_SCRIPT_FILE'):
print('set_global_assignment -name {0} "{1}{2}"... |
Fix wrapper regression | %std_exceptions(carto::Bitmap::Bitmap)
%std_exceptions(carto::Bitmap::CreateFromCompressed)
%ignore carto::Bitmap::Bitmap(const unsigned char*, std::size_t);
-%ignore carto::Bitmap::Bitmap(const unsigned char*, unsigned int, unsigned int, ColorFormat::ColorFormat, unsigned int);
+%ignore carto::Bitmap::Bitmap(const uns... |
Fix cross-build linux->mingw | #include <winsock2.h>
#include <ws2tcpip.h>
#include <iphlpapi.h>
-#include <Mswsock.h>
-#include <Windows.h>
+#include <mswsock.h>
+#include <windows.h>
#include "user_environment.h"
typedef CRITICAL_SECTION userland_mutex_t;
#if WINVER < 0x0600
|
Fix a memory corruption issue in u3_sung().
Senior nouns were being wrongly unified and freed, breaking
untracked junior references.
This change should also be applied to the maintenance branch. | @@ -586,6 +586,8 @@ _sang_x(u3_noun a, u3_noun b)
}
/* _sung_one(): pick a unified pointer for identical (a) and (b).
+**
+** Assumes exclusive access to noun memory.
*/
static void
_sung_one(u3_noun* a, u3_noun* b)
@@ -609,11 +611,19 @@ _sung_one(u3_noun* a, u3_noun* b)
if ( _(asr_o) && _(bsr_o) ) {
//
- // both are s... |
OcAcpiLib: Fix SSDT dumping | @@ -91,7 +91,7 @@ AcpiGetTableName (
TmpFile->Close (TmpFile);
}
- AsciiSPrint (&Name[4], NameSize - 4, "-%u", (UINT32) Index);
+ AsciiSPrint (&Name[4], NameSize - 4, "-%u", (UINT32) (Index + 1));
}
EFI_STATUS
|
enforcement of NodeConcerned filtering into reception. | @@ -144,8 +144,6 @@ void Recep_GetData(volatile unsigned char *data)
Transmit_SendAck();
}
MsgAlloc_InvalidMsg();
- if (crc + 1 == 0xFFFF)
- *data++;
}
ctx.data_cb = Recep_GetHeader;
}
@@ -245,9 +243,12 @@ uint8_t Recep_NodeConcerned(header_t *header)
}
break;
case BROADCAST:
- case MULTICAST:
+ if (header->target == B... |
UEFI: get the guest entry address explicitly
Previously with the help from gcc, __builtin_return_address(0) is
used as the guest entry address, but it can't work well with gcc 7.3
and leads to the guest unable to return to UEFI correctly.
Let's get it explicitly.
Acked-by: Eddie Dong | EFI_SYSTEM_TABLE *sys_table;
EFI_BOOT_SERVICES *boot;
EFI_RUNTIME_SERVICES *runtime;
+extern const uint64_t guest_entry;
static inline void hv_jump(EFI_PHYSICAL_ADDRESS hv_start,
struct multiboot_info *mbi, struct efi_ctx *efi_ctx)
{
hv_func hf;
- efi_ctx->rip = (uint64_t)__builtin_return_address(0);
+ efi_ctx->rip = (... |
lyb parser BUGFIX parse attributes with all data hints | @@ -537,7 +537,7 @@ lyb_parse_attributes(struct lylyb_ctx *lybctx, struct lyd_attr **attr)
/* attr2 is always changed to the created attribute */
ret = lyd_create_attr(NULL, &attr2, lybctx->ctx, name, strlen(name), prefix, ly_strlen(prefix), module_name,
- ly_strlen(module_name), value, ly_strlen(value), &dynamic, form... |
Upgrade pytest in CI jobs, include pytest-faulthander.
Upgrade Python to 3.5 | language: python
python:
- "2.7"
-- "3.4"
+- "3.5"
os: linux
env:
- BUILD_TOOL=scons CC=gcc-8 CXX=g++-8
@@ -36,7 +36,7 @@ install:
- source .ci/travis_install.sh
before_script:
-- pip install pytest pytest-cov
+- pip install --upgrade pytest pytest-cov pytest-faulthandler
- (cd python && python setup.py develop)
- expo... |
removed paypal donation link | @@ -86,10 +86,8 @@ https://marketplace.visualstudio.com/items?itemName=zerasul.genesis-code
### SUPPORT SGDK
-SGDK is completly free but you can support it on Patreon or using the Paypal donation link.
-
-Patreon: https://www.patreon.com/SGDK<br>
-Paypal donation link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclic... |
vere: fix use-after-free on exit in cttp | typedef struct _u3_cttp {
u3_auto car_u; // driver
u3_creq* ceq_u; // request list
+ uv_async_t nop_u; // unused handle (async close)
h2o_timeout_t tim_u; // request timeout
h2o_http1client_ctx_t //
ctx_u; // h2o client ctx
@@ -1102,6 +1103,17 @@ _cttp_io_kick(u3_auto* car_u, u3_noun wir, u3_noun cad)
return ret_o;
}
+... |
Process GOST ClientKeyExchange message in SSL_trace
Use ssl_print_hex to print message in case of GOST key exchange algorithm.
CLA: trivial | @@ -1110,6 +1110,10 @@ static int ssl_print_client_keyex(BIO *bio, int indent, const SSL *ssl,
if (!ssl_print_hexbuf(bio, indent + 2, "ecdh_Yc", 1, &msg, &msglen))
return 0;
break;
+ case SSL_kGOST:
+ ssl_print_hex(bio, indent + 2, "GostKeyTransportBlob", msg, msglen);
+ msglen = 0;
+ break;
}
|
revert "try to work around gcc update problems"
...as homebrew has dropped at least gcc8 now | @@ -44,11 +44,6 @@ jobs:
if: github.event_name != 'pull_request'
run: brew update || true
- - name: unlink installed gcc to allow updating
- run: |
- brew unlink gcc@8
- brew unlink gcc@9
-
- name: Install prerequisites
run: brew install --fetch-HEAD --HEAD --only-dependencies --keep-tmp openblas
|
io: deprecate CGLM_NO_PRINTS_NOOP | */
+/* DEPRECATED: CGLM_NO_PRINTS_NOOP (use CGLM_DEFINE_PRINTS) */
+
#ifndef cglm_io_h
#define cglm_io_h
#if defined(DEBUG) || defined(_DEBUG) \
- || defined(CGLM_DEFINE_PRINTS) || defined(CGLM_LIB_SRC)
+ || defined(CGLM_DEFINE_PRINTS) || defined(CGLM_LIB_SRC) \
+ || defined(CGLM_NO_PRINTS_NOOP)
#include "common.h"
|
find lib in $AOMP , not old /opt/rocm/hcc2 | @@ -63,7 +63,7 @@ endif
CC =$(AOMP)/bin/clang++
# compiler automatically adds "libdevice/<target>/ to -L opts
-LFLAGS =-L/opt/rocm/hcc2/lib
+LFLAGS =-L$(AOMP)/lib
# Add cudart only if we have an Nvidia sm_ target
ifeq (sm_,$(findstring sm_,$(TARGETS)))
|
Fix comment in protocol.h | //
-// Copyright 2020 Staysail Systems, Inc. <info@staysail.tech>
+// Copyright 2021 Staysail Systems, Inc. <info@staysail.tech>
// Copyright 2018 Capitar IT Group BV <info@capitar.com>
//
// This software is supplied under the terms of the MIT License, a
@@ -159,9 +159,7 @@ struct nni_proto {
// These flags determine ... |
Count overhead only for allocated chunks. | @@ -347,7 +347,7 @@ heapmem_alloc(size_t size)
chunk->line = line;
#endif
- PRINTF("%s ptr %p size %lu\n", __func__, GET_PTR(chunk), (unsigned long)size);
+ PRINTF("%s ptr %p size %zu\n", __func__, GET_PTR(chunk), size);
return GET_PTR(chunk);
}
@@ -502,11 +502,11 @@ heapmem_stats(heapmem_stats_t *stats)
chunk = NEXT_C... |
fixed typo + added migration notes | @@ -7,7 +7,7 @@ COMPILER
- added new TILEMAP resource (see rescomp.txt for more infos)
- added Tiled TMX map and object support (TILEMAP, MAP and OBJECT resources)
- added Tiled TSX tileset support (TILESET resource)
- - added global RGB image support (see rescompt.txt for more infos)
+ - added global RGB image support... |
simulator: fix aspect ratio; | @@ -95,7 +95,7 @@ static bool desktop_getViewAngles(uint32_t view, float* left, float* right, floa
float aspect, fov;
uint32_t width, height;
desktop_getDisplayDimensions(&width, &height);
- aspect = (float) width / 2.f / height;
+ aspect = (float) width / height;
fov = 67.f * (float) M_PI / 180.f * .5f;
*left = fov * ... |
Add def for disabling fortify if desired | @@ -192,7 +192,7 @@ build_target() {
build_subdir=release
add cc_flags -DNDEBUG -O2 -g0
if [[ $protections_enabled != 1 ]]; then
- add cc_flags -fno-stack-protector
+ add cc_flags -D_FORTIFY_SOURCE=0 -fno-stack-protector
fi
if [[ $os = mac ]]; then
# todo some stripping option
|
cycle~: adding phase reset to dsp method | @@ -271,6 +271,7 @@ static void cycle_dsp(t_cycle *x, t_signal **sp)
{
cybuf_checkdsp(x->x_cybuf);
x->x_conv = 1.0 / sp[0]->s_sr;
+ cycle_phase_reset(x);
//post("cycle tabsize = %d", x->x_cycle_tabsize);
dsp_add(cycle_perform, 5, x, sp[0]->s_n,
sp[0]->s_vec, sp[1]->s_vec, sp[2]->s_vec);
|
Start apiServer early | @@ -452,6 +452,7 @@ namespace MiningForce
// start API
apiServer = container.Resolve<ApiServer>();
+ apiServer.Start(clusterConfig);
// start pools in parallel
await Task.WhenAll(clusterConfig.Pools.Where(x => x.Enabled).Select(async poolConfig =>
@@ -480,8 +481,6 @@ namespace MiningForce
payoutProcessor.Start();
}
-
-... |
not gcc-4 on travis...? | @@ -28,6 +28,4 @@ script:
- gem uninstall -x iodine
- CC=gcc find pkg/iodine-*.gem -exec gem install {} +
- gem uninstall -x iodine
- - CC=gcc-4 find pkg/iodine-*.gem -exec gem install {} +
- - gem uninstall -x iodine
- CC=gcc-5 find pkg/iodine-*.gem -exec gem install {} +
|
Update contributors again. | Federico Agustin Alvarez Calzada <federicoabayon@gmail.com>
Gil Arasa Verge <gilarasaverge@gmail.com>
Alberto Fulcini <alberto98fx@gmail.com>
+Ajith Ramachandran <ajithar204@gmail.com>
Akash Joshi <jakash1997@gmail.com>
Thomas Rory Gummerson <thomas@gummerson.no>
|
Improve CSS parser fault tolerance, ignore invalid style name | @@ -770,11 +770,10 @@ static int CSSParser_ParseStyleValue( LCUI_CSSParserContext ctx )
if( *ctx->cur == ';' ) {
ctx->target = CSS_TARGET_KEY;
}
- if( !ctx->style.parser ) {
- return -1;
- }
CSSParser_EndBuffer( ctx );
+ if( ctx->style.parser ) {
ctx->style.parser->parse( &ctx->style, ctx->buffer );
+ }
DEBUG_MSG( "par... |
[chainmaker][#575]add lost EXCEED_STR_MAX_LEN macro | * limitations under the License.
*****************************************************************************/
#include "tcase_common.h"
+#define EXCEED_STR_MAX_LEN 4097
BOAT_RESULT check_chainmaker_wallet(BoatHlchainmakerWallet *wallet_ptr)
{
|
Add Docker building | @@ -61,6 +61,37 @@ build-windows.bat
- Install [Visual Studio 2022](https://www.visualstudio.com/vs/). Visual Studio Community Edition is fine.
- Open `Miningcore.sln` in Visual Studio
+## Building using Docker Engine
+In case you don't want to install any dependencies then you can build the app using the official Micr... |
... and remove the patch file when successful. | @@ -17,4 +17,4 @@ oldrev=`cat .cups-upstream`
newrev=`cd ../cups; git show | head -1 | awk '{print $2}'`
(cd ../cups; git diff $oldrev cups ':!cups/Dependencies' ':!cups/Makefile' ':!cups/libcups2.def' ':!cups/ppd*' ':!cups/test*') >$newrev.patch
-git apply $newrev.patch && (echo $newrev >.cups-upstream; git commit -a ... |
hwtest/pgraph: Add DMA_NOTIFY size check. | @@ -116,6 +116,13 @@ void MthdDmaNotify::emulate_mthd() {
if (extr(exp.debug[1], 20, 1))
exp.ctx_switch[1] = exp.ctx_cache[subc][1];
}
+ bool check_prot = true;
+ if (chipset.card_type >= 0x10)
+ check_prot = dcls != 0x30;
+ else if (chipset.chipset >= 5)
+ check_prot = dcls == 2 || dcls == 0x3d;
+ if (check_prot && po... |
restores the reproducibility of the +ivory pill | ::
-:::: /hoon/metal/gen
+:::: /hoon/ivory/gen
::
/? 310
::
::::
!:
:- %say
-|= $: {now/@da * bec/beak}
- *
- ==
+|= [[now=@da * bec=beak] *]
:- %noun
-::
:: sys: root path to boot system, `/~me/[desk]/now/sys`
::
-=+ sys=`path`/(scot %p p.bec)/[q.bec]/(scot %da now)/sys
-::
+=/ sys=path
+ /(scot %p p.bec)/[q.bec]/(sco... |
Remove continuous resizing workaround for Windows
It turns out that the workaround only worked for MacOS.
Refs <https://github.com/Genymobile/scrcpy/issues/3458>
Refs SDL/#1059 <https://github.com/libsdl-org/SDL/issues/1059> | @@ -306,13 +306,14 @@ sc_screen_render(struct sc_screen *screen, bool update_content_rect) {
}
-#if defined(__APPLE__) || defined(__WINDOWS__)
+#if defined(__APPLE__)
# define CONTINUOUS_RESIZING_WORKAROUND
#endif
#ifdef CONTINUOUS_RESIZING_WORKAROUND
// On Windows and MacOS, resizing blocks the event loop, so resizing... |
zuse: propagates fix to aes-128-siv and aes-192-siv as well | :: :: ++s2va:aes:crypto
++ s2va :: AES-128 S2V
~/ %s2va
- |= {key/@H ads/(list @)}
- =+ res=(maca key `16 0x0)
- %^ maca key ~
- |- ^- @uxH
+ |= [key=@H ads=(list @)]
?~ ads (maca key `16 0x1)
+ =/ res (maca key `16 0x0)
+ %+ maca key
+ |- ^- [[~ @ud] @uxH]
?~ t.ads
- ?: (gte (xeb i.ads) 128)
- (mix i.ads res)
- %+ mix... |
Don't remove .so files before running benchmarks | @@ -49,12 +49,10 @@ local function compile(ext, file_name)
end
local function benchmark(test_dir, no_lua)
- -- remove temporaries from previous runs
- util.shell(string.format([[ rm -f %s/*.so ]], test_dir))
-
local file_names = {}
for file_name in lfs.dir(test_dir) do
if not string.find(file_name, "^%.") and
+ not str... |
fix an issue that on_handshake_complete is not called; call it if encrypted data is ready for processing | @@ -1075,9 +1075,14 @@ static void proceed_handshake_picotls(h2o_socket_t *sock)
h2o_socket_read_stop(sock);
write_ssl_bytes(sock, wbuf.base, wbuf.off);
flush_pending_ssl(sock, ret == 0 ? on_handshake_complete : proceed_handshake);
+ } else {
+ if (ret == 0 && sock->ssl->input.encrypted->size > 0) {
+ /* handshake comp... |
RTX5: minor optimization (osKernelResume) | @@ -388,6 +388,7 @@ static void svcRtxKernelResume (uint32_t sleep_ticks) {
os_thread_t *thread;
os_timer_t *timer;
uint32_t delay;
+ uint32_t ticks;
if (osRtxInfo.kernel.state != osRtxKernelSuspended) {
EvrRtxKernelResumed();
@@ -395,46 +396,40 @@ static void svcRtxKernelResume (uint32_t sleep_ticks) {
return;
}
+ osR... |
GPIO HAL example fix 64-bit support | @@ -46,9 +46,9 @@ static uint8_t counter;
/*---------------------------------------------------------------------------*/
/* Print gpio_hal_pin_mask_t using the correct format */
#if GPIO_HAL_PIN_COUNT > 32
-#define PIN_MASK_FMT PRIx64
+#define PIN_MASK_FMT "0x%016" PRIx64
#else
-#define PIN_MASK_FMT PRIx32
+#define PI... |
passwd: only build helper func when needed | @@ -50,6 +50,7 @@ static int validatepwent (struct passwd * pwd)
return 0;
}
+#if defined(USE_GETLINE)
static struct passwd * strToPasswd (char * line)
{
char * ptoken;
@@ -85,6 +86,7 @@ static struct passwd * strToPasswd (char * line)
return pwd;
}
+#endif
static KeySet * pwentToKS (struct passwd * pwd, Key * parentKe... |
Fix leak in jsonReadVarRecurse(). | @@ -1181,7 +1181,13 @@ jsonReadVarRecurse(JsonRead *const this)
}
case jsonTypeString:
- FUNCTION_TEST_RETURN(VARIANT, varNewStr(jsonReadStr(this)));
+ {
+ String *const string = jsonReadStr(this);
+ Variant *const result = varNewStr(string);
+ strFree(string);
+
+ FUNCTION_TEST_RETURN(VARIANT, result);
+ }
case jsonTy... |
Fix: RTX5 Timer template | @@ -32,7 +32,7 @@ int Init_Timers (void) {
// Create one-shoot timer
exec1 = 1;
- tim_id1 = osTimerNew ((os_timer_func_t)&Timer1_Callback, osTimerOnce, &exec1, NULL);
+ tim_id1 = osTimerNew ((osTimerFunc_t)&Timer1_Callback, osTimerOnce, &exec1, NULL);
if (tim_id1 != NULL) { // One-shot timer created
// start timer with... |
add one more rule for 103/0/0 to map sfc | 'sfc' = {typeOfFirstFixedSurface=101; typeOfSecondFixedSurface=255;}
'sfc' = {typeOfFirstFixedSurface=102; typeOfSecondFixedSurface=255;}
'hl' = {typeOfFirstFixedSurface=103; typeOfSecondFixedSurface=255;}
+'sfc' = {typeOfFirstFixedSurface=103; scaleFactorOfFirstFixedSurface=0; scaledValueOfFirstFixedSurface=0; typeOfS... |
firinterp: adding copy() autotest | @@ -217,3 +217,35 @@ void autotest_firinterp_crcf_rnyquist_2()
void autotest_firinterp_crcf_rnyquist_3()
{ testbench_firinterp_crcf_nyquist(LIQUID_FIRFILT_RCOS, 2, 9,0.3f); }
+// test copy method
+void autotest_firinterp_copy()
+{
+ // create base object
+ firinterp_crcf q0 = firinterp_crcf_create_kaiser(3, 7, 60.0f);
... |
imxrt/mkimg: Fixed gdb symbol file generation | @@ -129,7 +129,8 @@ for app in $@; do
cp $app tmp.elf
${CROSS}strip $STRIP_CMD tmp.elf
printf "App %s @offset 0x%08x\n" $app $OFFSET
- printf "add-symbol-file %s 0x%08x\n" `realpath $app` $((OFFSET + $FLASH_START + $((0xc0)))) >> $GDB_SYM_FILE
+ ELFOFFS=$((`readelf -l $app | grep "LOAD" | grep "R E" | awk '{ print $2 }... |
fix some debug | @@ -55,10 +55,6 @@ typedef struct
float moment;
} Inertia;
-Eigen::Vector3f makeEigenVector3(float v1, float v2, float v3);
-Eigen::Matrix3f makeEigenMatrix3(float m11, float m12, float m13, float m21, float m22, float m23, float m31, float m32, float m33);
-Eigen::Matrix3f makeRotationMatrix(float roll, float pitch, f... |
Remove Windows.Storage from build options ***NO_CI***
This doesn't need to be exposed anymore as it's being set internaly when needed. | "API_Windows.Devices.SerialCommunication" : "OFF-default-ON-to-add-this-API",
"API_Windows.Devices.Spi" : "OFF-default-ON-to-add-this-API",
"API_Windows.Networking.Sockets" : "OFF-default-ON-to-add-this-API",
- "API_Windows.Storage" : "OFF-default-ON-to-add-this-API",
"API_Hardware.Esp32" : "OFF-default-ON-to-add-this-... |
added my contact to AUTHORS.md | @@ -219,3 +219,11 @@ debian packaging, release automation
- email: robert@sowula.at
- github user: [robaerd](https://github.com/robaerd)
- devel/test on: Debian, Ubuntu
+
+## Michael Tucek
+
+work on Java bindings
+
+- email: libelektra@hellwach.at
+- github user: [tucek](https://github.com/tucek)
+- devel/test on: Deb... |
sysrepo BUGFIX remove undefined functions
Fixes | @@ -947,13 +947,6 @@ int sr_validate(sr_session_ctx_t *session, const char *module_name, uint32_t tim
*/
int sr_apply_changes(sr_session_ctx_t *session, uint32_t timeout_ms);
-/**
- * @brief Apply changes made in the current session, while checking NACM.
- *
- * For more info, check @ref sr_apply_changes.
- */
-int sr_... |
h2olog: refactor func names | @@ -253,7 +253,7 @@ def parse_dscript(path: Path):
"probes": probes,
}
-def parse_d(context: dict, path: Path, block_probes: set = None):
+def parse_and_analyze(context: dict, path: Path, block_probes: set = None):
dscript = parse_dscript(path)
provider = dscript["provider"]
@@ -404,9 +404,9 @@ def prepare_context(h2o_... |
[nrf52][uart] Fix but in UART init | @@ -61,6 +61,7 @@ void uart_init_early(void)
UART_CONFIG_PARITY_Excluded << UART_CONFIG_PARITY_Pos;
NVIC_DisableIRQ(UARTE0_UART0_IRQn);
NRF_UART0->ENABLE = UART_ENABLE_ENABLE_Enabled << UART_ENABLE_ENABLE_Pos;
+ NRF_UART0->TXD = 'L'; //Must prime the tx queue with a character to start operation
NRF_UART0->TASKS_STARTTX... |
crypto: add payload version to the contract
Closes . | @@ -15,3 +15,4 @@ keyNew ("system/elektra/modules/" ELEKTRA_PLUGIN_NAME, KEY_VALUE, "crypto plugin
keyNew ("system/elektra/modules/" ELEKTRA_PLUGIN_NAME "/exports/checkconf", KEY_FUNC, CRYPTO_PLUGIN_FUNCTION (checkconf), KEY_END),
#include ELEKTRA_README (crypto)
keyNew ("system/elektra/modules/" ELEKTRA_PLUGIN_NAME "/... |
hv: vtd: fix potential dead loop if qi request timeout
Fix potential dead loop if qi request timeout. | @@ -547,7 +547,7 @@ static void dmar_issue_qi_request(struct dmar_drhd_rt *dmar_unit, struct dmar_en
{
struct dmar_entry *invalidate_desc_ptr;
uint32_t qi_status = 0U;
- __unused uint64_t start;
+ uint64_t start;
invalidate_desc_ptr = (struct dmar_entry *)(dmar_unit->qi_queue + dmar_unit->qi_tail);
@@ -565,12 +565,10 @... |
skiboot: Fix comment around OPAL_IMC_COUNTERS_ enum
Fixes: ('skiboot: Add opal calls to init/start/stop IMC devices) | @@ -1248,7 +1248,7 @@ enum {
XIVE_DUMP_EMU_STATE = 5,
};
-/* Operation argument to IMC Microcode */
+/* "type" argument options for OPAL_IMC_COUNTERS_* calls */
enum {
OPAL_IMC_COUNTERS_NEST = 1,
OPAL_IMC_COUNTERS_CORE = 2,
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.