message
stringlengths 6
474
| diff
stringlengths 8
5.22k
|
---|---|
Added code to synthesize only once for call function/method expression | @@ -668,7 +668,14 @@ end
-- type conversion.
function FunChecker:check_exp_synthesize(exp)
local tag = exp._tag
- if tag == "ast.Exp.Nil" then
+
+ if exp._type then
+ -- Fallthrough
+ -- Expression already synthesized. This occurs when
+ -- expand_function_returns is called. This ensures the work is done
+ -- only once for call function and call method expressions.
+
+ elseif tag == "ast.Exp.Nil" then
exp._type = types.T.Nil()
elseif tag == "ast.Exp.Bool" then
|
actions: use AdoptOpenJDK 16 | @@ -35,7 +35,7 @@ jobs:
- uses: actions/setup-java@v2
with:
distribution: 'adopt' # Use AdoptOpenJDK
- java-version: '14'
+ java-version: '16'
- name: Install Dependencies
run: |
|
Ensure --html-custom-css and --html-custom-js allow filesnames without HTML special chars. | #include <string.h>
#include <getopt.h>
#include <errno.h>
+#include <unistd.h>
#ifdef HAVE_LIBGEOIP
#include <GeoIP.h>
@@ -348,12 +349,22 @@ parse_long_opt (const char *name, const char *oarg) {
conf.color_scheme = atoi (oarg);
/* html custom CSS */
- if (!strcmp ("html-custom-css", name))
+ if (!strcmp ("html-custom-css", name)) {
+ if (strpbrk(oarg, "&\"'<>"))
+ FATAL ("Invalid characters in filename. The following characters are not allowed in filenames: [\"'&<>]\n");
+ if (access(oarg, F_OK) != 0)
+ FATAL ("Unable to open custom CSS filename: %s\n", oarg);
conf.html_custom_css = oarg;
+ }
/* html custom JS */
- if (!strcmp ("html-custom-js", name))
+ if (!strcmp ("html-custom-js", name)) {
+ if (strpbrk(oarg, "&\"'<>"))
+ FATAL ("Invalid characters in filename. The following characters are not allowed in filenames: [\"'&<>]\n");
+ if (access(oarg, F_OK) != 0)
+ FATAL ("Unable to open custom JS filename: %s\n", oarg);
conf.html_custom_js = oarg;
+ }
/* html JSON object containing default preferences */
if (!strcmp ("html-prefs", name))
|
Use mipmaps and filtering for OpenVR Canvas;
It leads to a prettier mirror window. There is some performance overhead, that can be dealt with as needed. | @@ -489,10 +489,11 @@ static void openvrRenderTo(void (*callback)(void*), void* userdata) {
if (!state.canvas) {
uint32_t width, height;
state.system->GetRecommendedRenderTargetSize(&width, &height);
- CanvasFlags flags = { .depth = { true, false, FORMAT_D24S8 }, .stereo = true, .msaa = state.msaa };
+ CanvasFlags flags = { .depth = { true, false, FORMAT_D24S8 }, .stereo = true, .mipmaps = true, .msaa = state.msaa };
state.canvas = lovrCanvasCreate(width * 2, height, flags);
- Texture* texture = lovrTextureCreate(TEXTURE_2D, NULL, 0, true, false, state.msaa);
+ Texture* texture = lovrTextureCreate(TEXTURE_2D, NULL, 0, true, true, state.msaa);
lovrTextureAllocate(texture, width * 2, height, 1, FORMAT_RGBA);
+ lovrTextureSetFilter(texture, lovrGraphicsGetDefaultFilter());
lovrCanvasSetAttachments(state.canvas, &(Attachment) { texture, 0, 0 }, 1);
lovrRelease(texture);
}
|
[awm2] Fix bug while computing drawable rects of multiple overlapping elements | @@ -561,7 +561,16 @@ impl Desktop {
continue;
}
//println!("\tOccluding {} by view with frame {}", elem.frame(), occluding_elem.frame());
- let mut new_drawable_rects = vec![];
+ // Keep rects that don't intersect with the occluding elem
+ let mut new_drawable_rects: Vec<Rect> = elem.drawable_rects().iter().filter_map(|r|{
+ // If it does not intersect with the occluding element, we want to keep it
+ if !r.intersects_with(occluding_elem.frame()) {
+ Some(*r)
+ }
+ else {
+ None
+ }
+ }).collect();
for rect in elem.drawable_rects() {
let mut visible_portions = rect.area_excluding_rect(occluding_elem.frame());
new_drawable_rects.append(&mut visible_portions);
@@ -859,6 +868,30 @@ mod test {
vec![Rect::new(180, 50, 100, 100)],
],
);
+
+ assert_window_layouts_matches_drawable_rects(
+ vec![
+ Rect::new(280, 190, 100, 130),
+ Rect::new(250, 250, 100, 130),
+ Rect::new(300, 300, 100, 130),
+ ],
+ vec![
+ vec![Rect::new(280, 190, 70, 60), Rect::new(350, 190, 30, 110)],
+ vec![Rect::new(250, 250, 50, 130), Rect::new(300, 250, 50, 50)],
+ vec![Rect::new(300, 300, 100, 130)],
+ ],
+ );
+
+ assert_window_layouts_matches_drawable_rects(
+ vec![
+ Rect::new(280, 190, 100, 130),
+ Rect::new(280, 190, 100, 130),
+ ],
+ vec![
+ vec![],
+ vec![Rect::new(280, 190, 100, 130)],
+ ],
+ );
}
fn assert_extra_draws(
|
Fix analyzer error with nil return value | @@ -44,9 +44,9 @@ typedef NSMutableDictionary<NSData *, NSData *> SPKICacheDictionnary;
@param certificate The certificate containing the public key that will be hashed
@param publicKeyAlgorithm The public algorithm to expect was used in this certificate
- @return The hash of the public key assuming it used the provided algorithm
+ @return The hash of the public key assuming it used the provided algorithm or nil if the hash could not be generated
*/
-- (NSData *)hashSubjectPublicKeyInfoFromCertificate:(SecCertificateRef)certificate publicKeyAlgorithm:(TSKPublicKeyAlgorithm)publicKeyAlgorithm;
+- (NSData * _Nullable)hashSubjectPublicKeyInfoFromCertificate:(SecCertificateRef)certificate publicKeyAlgorithm:(TSKPublicKeyAlgorithm)publicKeyAlgorithm;
@end
|
Add documentation on EIP712 filtering APDU | @@ -776,7 +776,7 @@ Sets the size of the upcoming array the following N fields will be apart of.
Sets the raw value of the next field in order in the current root structure.
Raw as in, an integer in the JSON file represented as "128" would only be 1 byte long (0x80)
-instead of 3 as an array of ASCII characters. same for addresses and so on.
+instead of 3 as an array of ASCII characters, same for addresses and so on.
_Output data_
@@ -784,6 +784,78 @@ _Output data_
None
+### EIP712 FILTERING
+
+#### Description
+
+This command provides a trusted way of deciding what information from the JSON data to show and replace some values by more meaningful ones.
+
+This mode can be overriden by the in-app setting to fully clear-sign EIP-712 messages.
+
+##### Activation
+
+Full filtering is disabled by default and has to be changed with this APDU (default behaviour is basic filtering handled by the app itself).
+
+Field substitution will be ignored if the full filtering is not activated.
+
+If activated, fields will be by default hidden unless they receive a field name substitution.
+
+##### Contract name substitution
+
+Name substitution commands should come right after the contract address from the domain has been sent with a *SEND STRUCT IMPLEMENTATION*.
+Perfect moment to do it is when the domain implementation has been sent, just before sending the message implementation.
+
+The signature is computed on :
+
+contract address || display name length || display name
+
+
+##### Field name substitution
+
+Name substitution commands should come before the corresponding *SEND STRUCT IMPLEMENTATION* and are only usable for message fields (and not domain ones).
+
+The signature is computed on :
+
+contract address || json key length || json key || display name length || display name
+
+#### Coding
+
+_Command_
+
+[width="80%"]
+|=========================================================================
+| *CLA* | *INS* | *P1* | *P2* | *LC* | *Le*
+| E0 | 1E | 00 : activate
+
+ 0F : contract name
+
+ FF : field name
+ | 00
+ | variable | variable
+|=========================================================================
+
+_Input data_
+
+##### If P1 == activate
+
+None
+
+##### If P1 == contract name OR P1 == field name
+
+[width="80%"]
+|==========================================
+| *Description* | *Length (byte)*
+| Display name length | 1
+| Display name | variable
+| Signature length | 1
+| Signature | variable
+|==========================================
+
+_Output data_
+
+None
+
+
## Transport protocol
### General transport description
|
Fixed BlockchainStats.BlockHeight for Monero | @@ -141,7 +141,7 @@ namespace MiningCore.Blockchain.Monero
var info = infoResponse.Response.ToObject<GetInfoResponse>();
- BlockchainStats.BlockHeight = (int) info.TargetHeight;
+ BlockchainStats.BlockHeight = (int) info.Height;
BlockchainStats.NetworkDifficulty = info.Difficulty;
BlockchainStats.NetworkHashRate = (double) info.Difficulty / info.Target;
BlockchainStats.ConnectedPeers = info.OutgoingConnectionsCount + info.IncomingConnectionsCount;
|
Update: deeper linkage level to allow to re-interpret instances in preconditions to derive new contingencies based on similarities | //Usage boost for input
#define ETERNAL_INPUT_USAGE_BOOST 1000000
//Unification depth, 2^(n+1)-1, n=2 levels lead to value 7
-#define UNIFICATION_DEPTH 15
+#define UNIFICATION_DEPTH 31
/*------------------*/
/* Space parameters */
|
Fix typos in README
Fix a broken link as well as updating the text.
Merges | ## SPI master example
-This code displays a simple graphics with varying pixel colors on the 320x240 LCD on an ESP-WROVER-KIT board.
+This code displays some simple graphics with varying pixel colors on the 320x240 LCD on an ESP-WROVER-KIT board.
-If you like to adopt this example to another type of display or pinout, check [manin/spi_master_example_main.c] for comments that explain some of implementation details.
+If you would like to adopt this example to another type of display or pinout check [main/spi_master_example_main.c] for comments that explain some of the implementation details.
|
install emdk | @@ -9,6 +9,8 @@ before_install:
- unzip -q $HOME/ndk.zip -d $HOME
- export ANDROID_NDK_HOME=$HOME/android-ndk-r12b
- rm $HOME/ndk.zip
+- wget https://s3.amazonaws.com/files.tau-technologies.com/buildenv/addon-symbol-emdk_v4.2-API-22.zip -O $HOME/emdk.zip
+- unzip -q $HOME/emdk.zip -d $ANDROID_HOME/add-ons
install:
- gem install rest-client listen zip
|
updates authors | # Authors ordered by first contribution.
# Generated by tools/update-authors.sh
-# and modified to reflect works in the public domain (denoted by ***)
Lew Rossman <[email protected]> ***
Michael Tryby <[email protected]> ***
@@ -20,3 +19,7 @@ Elad Salomons <[email protected]>
Maurizio Cingi <[email protected]>
Bryant McDonnell <[email protected]>
Angela Marchi <[email protected]>
+Markus Sunela <[email protected]>
+mariosmsk <[email protected]>
+
+*** = works in the public domain
\ No newline at end of file
|
limesdr - enumerate set media and device name
The device name was set to "USB 3.0 (LimeSDR USB)" which looked odd.
Now the device name field reports as LimeSDR USB,
and the media name reports as USB 3.0. | @@ -157,25 +157,22 @@ std::vector<ConnectionHandle> ConnectionSTREAMEntry::enumerate(const ConnectionH
printf("Cannot Claim Interface\n");
}
- std::string fullName;
+ ConnectionHandle handle;
+
//check operating speed
int speed = libusb_get_device_speed(devs[i]);
if(speed == LIBUSB_SPEED_HIGH)
- fullName = "USB 2.0";
+ handle.media = "USB 2.0";
else if(speed == LIBUSB_SPEED_SUPER)
- fullName = "USB 3.0";
+ handle.media = "USB 3.0";
else
- fullName = "USB";
- fullName += " (";
+ handle.media = "USB";
+
//read device name
char data[255];
r = libusb_get_string_descriptor_ascii(tempDev_handle, LIBUSB_CLASS_COMM, (unsigned char*)data, sizeof(data));
- if(r > 0) fullName += std::string(data, size_t(r));
- fullName += ")";
+ if(r > 0) handle.name = std::string(data, size_t(r));
- ConnectionHandle handle;
- handle.media = "USB";
- handle.name = fullName;
r = std::sprintf(data, "%.4x:%.4x", int(vid), int(pid));
if (r > 0) handle.addr = std::string(data, size_t(r));
|
Fix crash when error delivery fails. | @@ -1498,10 +1498,9 @@ _raft_lame(u3_noun ovo, u3_noun why, u3_noun tan)
bov = u3nc(u3k(u3h(ovo)), u3nc(c3__hole, u3k(u3t(u3t(ovo)))));
u3z(why);
- u3z(tan);
}
else {
- bov = u3nc(u3k(u3h(ovo)), u3nt(c3__crud, why, tan));
+ bov = u3nc(u3k(u3h(ovo)), u3nt(c3__crud, why, u3k(tan)));
}
// u3_lo_show("data", u3k(u3t(u3t(ovo))));
@@ -1512,6 +1511,7 @@ _raft_lame(u3_noun ovo, u3_noun why, u3_noun tan)
if ( u3_blip == u3h(gon) ) {
_raft_sure(bov, u3k(u3h(u3t(gon))), u3k(u3t(u3t(gon))));
+ u3z(tan);
u3z(gon);
}
else {
@@ -1523,6 +1523,7 @@ _raft_lame(u3_noun ovo, u3_noun why, u3_noun tan)
if ( u3_blip == u3h(nog) ) {
_raft_sure(vab, u3k(u3h(u3t(nog))), u3k(u3t(u3t(nog))));
+ u3z(tan);
u3z(nog);
}
else {
|
Fix Z capitalization
Lerp operator Z now respects capitalization based on the right port. | @@ -735,11 +735,12 @@ BEGIN_OPERATOR(lerp)
PORT(0, 1, IN);
PORT(1, 0, IN | OUT);
Glyph g = PEEK(0, -1);
+ Glyph b = PEEK(0, 1);
Isz rate = g == '.' || g == '*' ? 1 : (Isz)index_of(g);
- Isz goal = (Isz)index_of(PEEK(0, 1));
+ Isz goal = (Isz)index_of(b);
Isz val = (Isz)index_of(PEEK(1, 0));
Isz mod = val <= goal - rate ? rate : val >= goal + rate ? -rate : goal - val;
- POKE(1, 0, glyph_of((Usz)(val + mod)));
+ POKE(1, 0, glyph_with_case(glyph_of((Usz)(val + mod)), b));
END_OPERATOR
//////// Run simulation
|
Do not restart timer on bounce | @@ -630,6 +630,7 @@ void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin) {
We disable interrupts and clear this early interrupt flag before re-enabling them so that the *real*
interrupt can fire.
*/
+ if(!((&htim2)->Instance->CR1 & TIM_CR1_CEN)){
HAL_NVIC_DisableIRQ(TIM2_IRQn);
__HAL_TIM_SetCounter(&htim2, 0);
__HAL_TIM_SetCompare(&htim2, TIM_CHANNEL_1, long_press_exit_time * 10); // press-to-reset-time
@@ -637,6 +638,7 @@ void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin) {
HAL_TIM_Base_Start_IT(&htim2);
__HAL_TIM_CLEAR_FLAG(&htim2, TIM_SR_UIF);
HAL_NVIC_EnableIRQ(TIM2_IRQn);
+ }
} else {
if(__HAL_TIM_GetCounter(&htim2) > 200){ // 20ms debounce time
|
tests/run-natmodtests: Update for Pycopy. | @@ -14,7 +14,7 @@ import pyboard
# Paths for host executables
CPYTHON3 = os.getenv('MICROPY_CPYTHON3', 'python3')
-MICROPYTHON = os.getenv('MICROPY_MICROPYTHON', '../ports/unix/micropython_coverage')
+MICROPYTHON = os.getenv('MICROPY_MICROPYTHON', '../ports/unix/pycopy_coverage')
NATMOD_EXAMPLE_DIR = '../examples/natmod/'
|
Test -f report. | 6 July 2017: Wouter
- Fix tests to use .tdir (from Manu Bretelle) instead of .tpkg.
- - Fix svn hooks for tdir (selected if testcode/mini_tdir.sh exists)..
+ - Fix svn hooks for tdir (selected if testcode/mini_tdir.sh exists).
4 July 2017: Wouter
- Fix 1332: Bump verbosity of failed chown'ing of the control socket.
|
BTS: Save high PC addresses when kernelOnly is enabled | @@ -69,8 +69,9 @@ static inline void arch_perfBtsCount(honggfuzz_t * hfuzz, fuzzer_t * fuzzer)
* Kernel sometimes reports branches from the kernel (iret), we are not interested in that as it
* makes the whole concept of unique branch counting less predictable
*/
- if (__builtin_expect(br->from > 0xFFFFFFFF00000000, false)
- || __builtin_expect(br->to > 0xFFFFFFFF00000000, false)) {
+ if (hfuzz->linux.kernelOnly == false
+ && (__builtin_expect(br->from > 0xFFFFFFFF00000000, false)
+ || __builtin_expect(br->to > 0xFFFFFFFF00000000, false))) {
LOG_D("Adding branch %#018" PRIx64 " - %#018" PRIx64, br->from, br->to);
continue;
}
|
enforce invariants: stars direct only, indirect target already bound | |= [for=ship him=ship tar=target]
^- (quip move _this)
~& [%bind src=src.bow for=for him=him tar=tar]
- ~| %bind-yoself
- ?< =(for him)
+ ?: =(for him)
+ ~|(%bind-yoself !!)
+ ?: ?& ?=(%king (clan:title him))
+ ?=(%indirect -.tar)
+ ==
+ ~& [%indirect-star +<]
+ :: XX crash?
+ [~ this]
:: always forward, there may be multiple authorities
::
=^ zom=(list move) ..this
::
++ create
|= [for=ship him=ship tar=target]
+ :: XX defer %indirect where target isn't yet bound
+ ?> ?| ?=(%direct -.tar)
+ (~(has by bon.nam) p.tar)
+ ==
=/ wir=wire
/authority/create/(scot %p him)/for/(scot %p for)
=/ req=hiss:eyre
|
dbug: order rcv's nax | 'fragments'^(set-array ~(key by fragments) numb)
==
::
- 'nax'^(set-array nax numb)
+ 'nax'^a+(turn (sort ~(tap in nax) vor) numb)
::
(bone-to-pairs bone ossuary)
==
|
Autotool new options : --with/--without -getrandom and --with/--without -sysgetrandom.
Autodetect works by default for getrandom and sysgetrandom.
With the these options user can use the detected functions or ignore them. | @@ -183,8 +183,16 @@ AC_LINK_IFELSE([AC_LANG_SOURCE([
AC_MSG_RESULT([yes])],
[AC_MSG_RESULT([no])])])
+AC_ARG_WITH([getrandom],
+ [AS_HELP_STRING([--with-getrandom],
+ [enforce the use of getrandom function in the system @<:@default=check@:>@])
+AS_HELP_STRING([--without-getrandom],
+ [skip auto detect of getrandom @<:@default=check@:>@])],
+ [],
+ [with_getrandom=check])
-AC_MSG_CHECKING([for getrandom (Linux 3.17+, glibc 2.25+)])
+AS_IF([test "x$with_getrandom" != xno],
+ [AC_MSG_CHECKING([for getrandom (Linux 3.17+, glibc 2.25+)])
AC_LINK_IFELSE([AC_LANG_SOURCE([
#include <stdlib.h> /* for NULL */
#include <sys/random.h>
@@ -195,8 +203,19 @@ AC_LINK_IFELSE([AC_LANG_SOURCE([
[AC_DEFINE([HAVE_GETRANDOM], [1], [Define to 1 if you have the `getrandom' function.])
AC_MSG_RESULT([yes])],
[AC_MSG_RESULT([no])
+ AS_IF([test "x$with_getrandom" = xyes],
+ [AC_MSG_ERROR([enforced the use of getrandom --with-getrandom, but not detected])])])])
+
+AC_ARG_WITH([sys_getrandom],
+ [AS_HELP_STRING([--with-sys-getrandom],
+ [enforce the use of syscall SYS_getrandom function in the system @<:@default=check@:>@])
+AS_HELP_STRING([--without-sys-getrandom],
+ [skip auto detect of syscall SYS_getrandom @<:@default=check@:>@])],
+ [],
+ [with_sys_getrandom=check])
- AC_MSG_CHECKING([for syscall SYS_getrandom (Linux 3.17+)])
+AS_IF([test "x$with_sys_getrandom" != xno],
+ [AC_MSG_CHECKING([for syscall SYS_getrandom (Linux 3.17+)])
AC_LINK_IFELSE([AC_LANG_SOURCE([
#include <stdlib.h> /* for NULL */
#include <unistd.h> /* for syscall */
@@ -208,8 +227,9 @@ AC_LINK_IFELSE([AC_LANG_SOURCE([
])],
[AC_DEFINE([HAVE_SYSCALL_GETRANDOM], [1], [Define to 1 if you have `syscall' and `SYS_getrandom'.])
AC_MSG_RESULT([yes])],
- [AC_MSG_RESULT([no])])])
-
+ [AC_MSG_RESULT([no])
+ AS_IF([test "x$with_sys_getrandom" = xyes],
+ [AC_MSG_ERROR([enforced the use of syscall SYS_getrandom --with-sys-getrandom, but not detected])])])])
dnl Only needed for xmlwf:
AC_CHECK_HEADERS(fcntl.h unistd.h)
|
Make sure we also cleanse the finished key | @@ -820,6 +820,7 @@ int tls_construct_ctos_psk(SSL *s, WPACKET *pkt, X509 *x, size_t chainidx,
ret = 1;
err:
OPENSSL_cleanse(binderkey, sizeof(binderkey));
+ OPENSSL_cleanse(finishedkey, sizeof(finishedkey));
EVP_PKEY_free(mackey);
EVP_MD_CTX_free(mctx);
|
Turned on -Werror for gcc. | @@ -16,6 +16,7 @@ tool_specific:
- -Os
- -g3
# - -Wall
+ - -Werror
- -ffunction-sections
- -fdata-sections
- -std=gnu99
|
disabled s7 thread locking on n3ds and baremetalpi, fingers crossed | @@ -95162,7 +95162,7 @@ static void init_rootlet(s7_scheme *sc)
init_setters(sc);
}
-#if (!MS_WINDOWS)
+#if (!MS_WINDOWS) && !defined(S7_BAREMETALPI) && !defined(S7_N3DS)
static pthread_mutex_t init_lock = PTHREAD_MUTEX_INITIALIZER;
#endif
@@ -95172,7 +95172,7 @@ s7_scheme *s7_init(void)
s7_scheme *sc;
static bool already_inited = false;
-#if (!MS_WINDOWS)
+#if (!MS_WINDOWS) && !defined(S7_BAREMETALPI) && !defined(S7_N3DS)
setlocale(LC_NUMERIC, "C"); /* use decimal point in floats */
pthread_mutex_lock(&init_lock);
#endif
@@ -95198,7 +95198,7 @@ s7_scheme *s7_init(void)
already_inited = true;
}
-#if (!MS_WINDOWS)
+#if (!MS_WINDOWS) && !defined(S7_BAREMETALPI) && !defined(S7_N3DS)
pthread_mutex_unlock(&init_lock);
#endif
sc = (s7_scheme *)Calloc(1, sizeof(s7_scheme)); /* not malloc! */
|
improved --info | @@ -1116,6 +1116,9 @@ return;
/*===========================================================================*/
static void writepmkideapolhashlineinfo(FILE *fh_pmkideapol, hashlist_t *zeiger)
{
+static eapauth_t *eapa;
+static wpakey_t *wpak;
+static uint8_t keyver;
static char *vendor;
if((zeiger->essidlen < essidlenmin) || (zeiger->essidlen > essidlenmax)) return;
@@ -1155,6 +1158,14 @@ if(zeiger->type == HCX_TYPE_PMKID)
}
if(zeiger->type == HCX_TYPE_EAPOL)
{
+ eapa = (eapauth_t*)zeiger->eapol;
+ wpak = (wpakey_t*)&zeiger->eapol[EAPAUTH_SIZE];
+ if(eapa->version == 1) fprintf(fh_pmkideapol, "Version:... 802.1X-2001 (1)\n");
+ if(eapa->version == 2) fprintf(fh_pmkideapol, "Version...: 802.1X-2004 (2)\n");
+ keyver = ntohs(wpak->keyinfo) & WPA_KEY_INFO_TYPE_MASK;
+ if(keyver == 1) fprintf(fh_pmkideapol, "KeyVersion: WPA1\n");
+ if(keyver == 2) fprintf(fh_pmkideapol, "KeyVersion: WPA2\n");
+ if(keyver == 3) fprintf(fh_pmkideapol, "KeyVersion: WPA2 key version 3\n");
if((zeiger->mp & 0x07) == 0x00) fprintf(fh_pmkideapol, "MP M1M2 E2: not authorized\n");
if((zeiger->mp & 0x07) == 0x01) fprintf(fh_pmkideapol, "MP M1M4 E4: authorized\n");
if((zeiger->mp & 0x07) == 0x02) fprintf(fh_pmkideapol, "MP M2M3 E2: authorized\n");
|
CI: attempt to fix PR test workflow. | @@ -10,7 +10,7 @@ jobs:
- name: Install deps
run: |
sudo apt-get update -y
- sudo apt-get install -y libevent-dev libseccomp-dev git libsasl2-dev
+ sudo apt-get install -y libevent-dev libseccomp-dev git libsasl2-dev libio-socket-ssl-perl
- name: Build
run: |
gcc --version
|
config_tools: use python3 in configurator clean
Use python3 in configurator clean for Debian-based Linux is preferred
in this case. | @@ -240,7 +240,7 @@ def clean_configurator_deb(version, build_dir):
add_cmd_list(cmd_list, 'bash -c "find -name "build" -prune -exec rm -rf {} \;"', config_tools_path)
add_cmd_list(cmd_list, 'bash -c "find -name "target" -prune -exec rm -rf {} \;"', config_tools_path)
add_cmd_list(cmd_list, 'bash -c "rm -rf dist"', config_tools_path)
- add_cmd_list(cmd_list, 'bash -c "python ./configurator/packages/configurator/thirdLib/manager.py clean"', config_tools_path)
+ add_cmd_list(cmd_list, 'bash -c "python3 ./configurator/packages/configurator/thirdLib/manager.py clean"', config_tools_path)
run_cmd_list(cmd_list)
return
|
fixes mkstemp file handle-leaking behavior | #include <stdlib.h>
#include <stdio.h>
#include <string.h>
+#include <unistd.h>
//*** For the Windows SDK _tempnam function ***//
#ifdef _WIN32
@@ -1091,8 +1092,11 @@ char *getTmpName(char *fname)
// --- for non-Windows systems:
#else
// --- use system function mkstemp() to create a temporary file name
+ int f = -1;
strcpy(fname, "enXXXXXX");
- mkstemp(fname);
+ f = mkstemp(fname);
+ close(f);
+ remove(fname);
#endif
return fname;
}
|
Fix a possible memory leak in engine_table_register | @@ -109,6 +109,11 @@ int engine_table_register(ENGINE_TABLE **table, ENGINE_CLEANUP_CB *cleanup,
}
fnd->funct = NULL;
(void)lh_ENGINE_PILE_insert(&(*table)->piles, fnd);
+ if (lh_ENGINE_PILE_retrieve(&(*table)->piles, &tmplate) != fnd) {
+ sk_ENGINE_free(fnd->sk);
+ OPENSSL_free(fnd);
+ goto end;
+ }
}
/* A registration shouldn't add duplicate entries */
(void)sk_ENGINE_delete_ptr(fnd->sk, e);
|
[BSP][K210]Add interface reboot | @@ -117,3 +117,10 @@ void rt_hw_board_init(void)
rt_components_board_init();
#endif
}
+void rt_hw_cpu_reset(void)
+{
+ sysctl->soft_reset.soft_reset = 1;
+ while(1);
+}
+
+MSH_CMD_EXPORT_ALIAS(rt_hw_cpu_reset, reboot, reset machine);
|
Add Build instructions for Android
A huge thanks for Larry Sachs for his help getting the
code working on Android and his help adding this documentation
Tested-by: IoTivity Jenkins | @@ -73,7 +73,7 @@ tested against Oracle Java 8 and OpenJDK 1.8.
Oracle Java 8 JDK can be
[downloaded here](https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html).
-On Ubuntu Linux OpenJDK can be downloade using the following command.
+On Ubuntu Linux OpenJDK can be downloaded using the following command.
apt-get search openjdk
sudo apt-get install openjdk-8-jdk
@@ -222,14 +222,29 @@ Build the JNI shared library `libiotivity-lite-jni.so`:
./build-jni-so.sh
-
-
Build `iotivity-lite.jar`:
./build-iotivity-lite.sh
### Building for Android
-<!-- TODO -->
+Follow the steps for Linux to generate the Java and JNI code and build the
+`iotivity-lite.jar` i.e.
+
+ ./build_swig.sh
+
+ ./build-iotivity-lite.sh
+
+Now copy the `iotivity-lite.jar` to the Android app libs directory:
+
+ cp -v iotivity-lite.jar ../apps/android_simple_server/SimpleServer/app/libs/iotivity-lite.jar
+ cp -v iotivity-lite.jar ../apps/android_simple_client/SimpleClient/app/libs/iotivity-lite.jar
+
+Note that these commands are in the file `build-iotivity-lite.sh` and can be
+uncommented-out.
+
+
+To build the `libiotivity-lite-jni.so` shared object library for Android cd to
+`<iotivity-lite>/android/port` and see the instructions in Makefile-swig.
Testing and Verifying
=================================================
@@ -264,7 +279,21 @@ execute the following commands.
./run-simple-client-lite.sh
### Building and Running Samples Android
-<!-- TODO -->
+A sample server and client can be found in `<iotivity-lite>/swig/apps/<sample>`
+
+Note that gradlew will require a `local.properties` to exist or ANDROID_HOME
+to be defined. An installation of Android Studio should create the
+`local.properties` file.
+
+The server sample is in `android_simple_server/SimpleServer`. To build and
+install the sample execute the following command:
+
+ ./gradlew installDebug
+
+The client sample is in `android_simple_client/SimpleClient`. To build and
+install the sample execute the following command:
+
+ ./gradlew installDebug
Layout of swig folder
=================================================
@@ -326,7 +355,7 @@ advantage of this powerful IDE if they wish.
To open the project files:
- Open Eclipse
- select `File->Import..`
- - select `General->Existin Projects into Workspace`
+ - select `General->Existing Projects into Workspace`
- click `Next>` button
- click the `Browse..` button next to the `Select root directory:` text box
- browse to the `<iotivity-lite>\swig` directory click `OK`
@@ -353,6 +382,12 @@ command line version of the unit tests.
Run samples by right clicking on the sample select
`Run As -> Java Application`.
+If the code was previously built using the command-line build scripts you may
+get build warnings indicating some class files can not be found. Select
+`Project -> Clean...`. Then right click on the `iotivity-lite` project and
+select `Refresh`. This should force the project to rebuild the all the class
+files associated with the `iotivity-lite.jar` file.
+
Send Feedback
=================================================
The SWIG generated language bindings are still in an early stage. The work
|
Mushu: Free up flash space
Mushu is down to 700 bytes of free flash on ToT, so remove some
commands in order to bring it up to almost 2k free.
BRANCH=None
TEST=make -j buildall | /* Baseboard features */
#include "baseboard.h"
-/* Remove PRL state names to free flash space */
+/* Reduce flash usage */
#define CONFIG_USB_PD_DEBUG_LEVEL 2
+#undef CONFIG_CMD_ACCELSPOOF
+#undef CONFIG_CMD_CHARGER_DUMP
+#undef CONFIG_CMD_PPC_DUMP
#define CONFIG_POWER_BUTTON
#define CONFIG_KEYBOARD_PROTOCOL_8042
|
Enhance detection of required MinGW DDL files. | @@ -478,16 +478,29 @@ if(TINYSPLINE_RUNTIME_LIBRARIES STREQUAL "")
DIRECTORY)
list(APPEND
CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS
- "${basedir}/libstdc++-6.dll"
- "${basedir}/libwinpthread-1.dll")
- if(TINYSPLINE_PLATFORM_ARCH STREQUAL "x86")
+ "${basedir}/libstdc++-6.dll")
+ # Determining the used exception model is not quite as
+ # simple as one would suspect. Thus, we simple add all
+ # existing DLL files that are responsible for exception
+ # handling.
list(APPEND
- CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS
+ TINYSPLINE_EXCEPTION_RUNTIME_LIBRARIES
+ "${basedir}/libgcc_s_seh-1.dll"
+ "${basedir}/libgcc_s_dw2-1.dll"
"${basedir}/libgcc_s_sjlj-1.dll")
- elseif(TINYSPLINE_PLATFORM_ARCH STREQUAL "x86_64")
+ foreach(file ${TINYSPLINE_EXCEPTION_RUNTIME_LIBRARIES})
+ if(EXISTS ${file})
list(APPEND
CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS
- "${basedir}/libgcc_s_seh-1.dll")
+ ${file})
+ endif()
+ endforeach()
+ # Add the libwinpthread DLL if it exists, indicating
+ # that POSIX (instead of win32) threads are enabled.
+ if(EXISTS "${basedir}/libwinpthread-1.dll")
+ list(APPEND
+ CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS
+ "${basedir}/libwinpthread-1.dll")
endif()
endif()
# Override cached variable.
|
multiline: added extra argument to flb_sched_timer_cb_create call | @@ -846,7 +846,7 @@ int flb_ml_auto_flush_init(struct flb_ml *ml)
FLB_SCHED_TIMER_CB_PERM,
ml->flush_ms,
cb_ml_flush_timer,
- ml);
+ ml, NULL);
return ret;
}
|
Use correct GetDatum() in pg_relation_check_pages()
UInt32GetDatum() was getting used, while the result needs
Int64GetDatum(). Oversight in
Per buildfarm member florican.
Discussion: | @@ -214,7 +214,7 @@ check_relation_fork(TupleDesc tupdesc, Tuplestorestate *tupstore,
memset(nulls, 0, sizeof(nulls));
values[i++] = CStringGetTextDatum(path);
- values[i++] = UInt32GetDatum(blkno);
+ values[i++] = Int64GetDatum((int64) blkno);
Assert(i == PG_CHECK_RELATION_COLS);
|
testpath fix | @@ -21,7 +21,7 @@ tests_general.append([1, 0, workdir + 'client_http_get -u /cgi-bin/he -v 2 not.r
tests_general.append([1, 0, workdir + 'client_http_get -u /cgi-bin/he -v 2 buildbot.nplab.de'])
tests_general.append([0, 0, workdir + 'client_http_get -n 2 -u /files/4M bsd10.nplab.de'])
if (platform.system() == "FreeBSD") or (platform.system() == "Linux"):
- tests_general.append([1, 0, workdir + 'client_http_get -P ' + workdir = 'prop_tcp_security.json -p 443 -v 2 www.neat-project.org'])
+ tests_general.append([1, 0, workdir + 'client_http_get -P ' + workdir + 'prop_tcp_security.json -p 443 -v 2 www.neat-project.org'])
tests_general.append([0, 0, workdir + 'tneat -v 2 -P ' + workdir + 'prop_sctp_dtls.json interop.fh-muenster.de'])
#tests_general.append([0, 0, 'python3.5 ../../policy/pmtests.py'])
|
Tests: initialising log params before first _print_log(). | @@ -400,6 +400,8 @@ def unit_run():
with open(temp_dir + '/unit.log', 'w') as log:
unit_instance['process'] = subprocess.Popen(unitd_args, stderr=log)
+ Log.temp_dir = temp_dir
+
if not waitforfiles(temp_dir + '/control.unit.sock'):
_print_log()
exit('Could not start unit')
@@ -409,7 +411,6 @@ def unit_run():
unit_instance['unitd'] = unitd
option.temp_dir = temp_dir
- Log.temp_dir = temp_dir
with open(temp_dir + '/unit.pid', 'r') as f:
unit_instance['pid'] = f.read().rstrip()
@@ -487,7 +488,7 @@ def _check_alerts(*, log=None):
print('skipped.')
-def _print_log(log):
+def _print_log(log=None):
path = Log.get_path()
print('Path to unit.log:\n' + path + '\n')
|
mmap: fixed the issue mmap cannot be called with pointers to psram | @@ -157,6 +157,8 @@ esp_err_t IRAM_ATTR spi_flash_mmap_pages(const int *pages, size_t page_count, sp
const void** out_ptr, spi_flash_mmap_handle_t* out_handle)
{
esp_err_t ret;
+ const void* temp_ptr = *out_ptr = NULL;
+ spi_flash_mmap_handle_t temp_handle = *out_handle = (spi_flash_mmap_handle_t)NULL;
bool need_flush = false;
if (!page_count) {
return ESP_ERR_INVALID_ARG;
@@ -212,8 +214,6 @@ esp_err_t IRAM_ATTR spi_flash_mmap_pages(const int *pages, size_t page_count, sp
}
// checked all the region(s) and haven't found anything?
if (start == end) {
- *out_handle = 0;
- *out_ptr = NULL;
ret = ESP_ERR_NO_MEM;
} else {
// set up mapping using pages
@@ -255,8 +255,8 @@ esp_err_t IRAM_ATTR spi_flash_mmap_pages(const int *pages, size_t page_count, sp
new_entry->page = start;
new_entry->count = page_count;
new_entry->handle = ++s_mmap_last_handle;
- *out_handle = new_entry->handle;
- *out_ptr = (void*) (region_addr + (start - region_begin) * SPI_FLASH_MMU_PAGE_SIZE);
+ temp_handle = new_entry->handle;
+ temp_ptr = (void*) (region_addr + (start - region_begin) * SPI_FLASH_MMU_PAGE_SIZE);
ret = ESP_OK;
}
@@ -279,9 +279,11 @@ esp_err_t IRAM_ATTR spi_flash_mmap_pages(const int *pages, size_t page_count, sp
}
spi_flash_enable_interrupts_caches_and_other_cpu();
- if (*out_ptr == NULL) {
+ if (temp_ptr == NULL) {
free(new_entry);
}
+ *out_ptr = temp_ptr;
+ *out_handle = temp_handle;
return ret;
}
|
printer BUGFIX ignore NP state containers for explicit print | @@ -129,9 +129,11 @@ ly_should_print(const struct lyd_node *node, int options)
/* LYDP_WD_EXPLICIT
* - print only if it contains status data in its subtree */
LYD_TREE_DFS_BEGIN(node, next, elem) {
+ if ((elem->schema->nodetype != LYS_CONTAINER) || (elem->schema->flags & LYS_PRESENCE)) {
if (elem->schema->flags & LYS_CONFIG_R) {
return 1;
}
+ }
LYD_TREE_DFS_END(node, next, elem)
}
return 0;
|
driver/usb_mux/anx7440.c: Format with clang-format
BRANCH=none
TEST=none | #define CPRINTS(format, args...) cprints(CC_USBCHARGE, format, ##args)
#define CPRINTF(format, args...) cprintf(CC_USBCHARGE, format, ##args)
-static inline int anx7440_read(const struct usb_mux *me,
- uint8_t reg, int *val)
+static inline int anx7440_read(const struct usb_mux *me, uint8_t reg, int *val)
{
return i2c_read8(me->i2c_port, me->i2c_addr_flags, reg, val);
}
-static inline int anx7440_write(const struct usb_mux *me,
- uint8_t reg, uint8_t val)
+static inline int anx7440_write(const struct usb_mux *me, uint8_t reg,
+ uint8_t val)
{
return i2c_write8(me->i2c_port, me->i2c_addr_flags, reg, val);
}
|
fixed GetCycleCount() crash under 32bit arm darwin | @@ -72,10 +72,10 @@ Y_FORCE_INLINE ui64 GetCycleCount() noexcept {
__asm__ volatile("rdtscp\n\t"
: "=A"(x)::"%ecx");
return x;
-#elif defined(__clang__) && !defined(_arm64_)
- return __builtin_readcyclecounter();
#elif defined(_darwin_)
return mach_absolute_time();
+#elif defined(__clang__) && !defined(_arm64_)
+ return __builtin_readcyclecounter();
#elif defined(_arm32_)
return MicroSeconds();
#elif defined(_arm64_)
|
docs - update correlation statistic support | </dlentry>
<dlentry>
<dt>correlation</dt>
- <dd>Greenplum Database does not calculate the correlation statistic. </dd>
+ <dd>Greenplum Database computes correlation statistics for heap tables. These
+ statistics are used by the Postgres Planner. Greenplum does not compute
+ correlation statistics for AO and AOCO tables; the value in this column for
+ these table types is undefined.</dd>
</dlentry>
<dlentry>
<dt>most_common_elems</dt>
|
[STM32] Fix crypto driver IV/nonce handling | @@ -65,11 +65,16 @@ stm32_has_support(struct crypto_dev *crypto, uint8_t op, uint16_t algo,
static uint32_t
stm32_crypto_op(struct crypto_dev *crypto, uint8_t op, uint16_t algo,
- uint16_t mode, const uint8_t *key, uint16_t keylen, const uint8_t *iv,
+ uint16_t mode, const uint8_t *key, uint16_t keylen, uint8_t *iv,
const uint8_t *inbuf, uint8_t *outbuf, uint32_t len)
{
HAL_StatusTypeDef status;
uint32_t sz = 0;
+ uint8_t i;
+ uint8_t iv_save[AES_BLOCK_LEN];
+ unsigned int inc;
+ unsigned int carry;
+ unsigned int v;
if (!stm32_has_support(crypto, op, algo, mode, keylen)) {
return 0;
@@ -106,9 +111,16 @@ stm32_crypto_op(struct crypto_dev *crypto, uint8_t op, uint16_t algo,
if (op == CRYPTO_OP_ENCRYPT) {
status = HAL_CRYP_AESCBC_Encrypt(&g_hcryp, (uint8_t *)inbuf, len,
outbuf, HAL_MAX_DELAY);
+ if (status == HAL_OK) {
+ memcpy(iv, &outbuf[len-AES_BLOCK_LEN], AES_BLOCK_LEN);
+ }
} else {
+ memcpy(iv_save, &inbuf[len-AES_BLOCK_LEN], AES_BLOCK_LEN);
status = HAL_CRYP_AESCBC_Decrypt(&g_hcryp, (uint8_t *)inbuf, len,
outbuf, HAL_MAX_DELAY);
+ if (status == HAL_OK) {
+ memcpy(iv, iv_save, AES_BLOCK_LEN);
+ }
}
break;
case CRYPTO_MODE_CTR:
@@ -119,18 +131,26 @@ stm32_crypto_op(struct crypto_dev *crypto, uint8_t op, uint16_t algo,
status = HAL_CRYP_AESCTR_Decrypt(&g_hcryp, (uint8_t *)inbuf, len,
outbuf, HAL_MAX_DELAY);
}
+ if (status == HAL_OK) {
+ inc = (len + AES_BLOCK_LEN - 1) / AES_BLOCK_LEN;
+ carry = 0;
+ for (i = AES_BLOCK_LEN; (inc != 0 || carry != 0) && i > 0; --i) {
+ v = carry + (uint8_t)inc + iv[i - 1];
+ iv[i - 1] = (uint8_t)v;
+ inc >>= 8;
+ carry = v >> 8;
+ }
+ }
break;
default:
sz = 0;
goto out;
}
- if (status != HAL_OK) {
- sz = 0;
+ if (status == HAL_OK) {
+ sz = len;
}
- /* XXX update IV/nonce if OK */
-
out:
os_mutex_release(&gmtx);
return sz;
|
vere: remove dependency on nix-store path for static darwin binary
Poached from work in | @@ -54,6 +54,12 @@ in stdenv.mkDerivation {
mkdir -p $out/bin
cp ./build/urbit $out/bin/urbit
cp ./build/urbit-worker $out/bin/urbit-worker
+ '' + lib.optionalString (stdenv.isDarwin && enableStatic) ''
+ # Hack stolen from //nixpkgs/pkgs/stdenv/darwin/portable-libsystem.sh
+ find "$out/bin" -exec \
+ install_name_tool -change \
+ ${stdenv.cc.libc}/lib/libSystem.B.dylib \
+ /usr/lib/libSystem.B.dylib {} \;
'';
CFLAGS = [ (if enableDebug then "-O0" else "-O3") "-g" ]
|
Fix +test-five-oh-cache-reclamation | |= moves=(list move:ford-turbo)
^- tang
::
- :: ~| %didnt-get-two-moves
+ =+ length=(lent moves)
+ :: deal with mug ordering
+ ::
+ :: This test depends on the mugs of types stored in ford, which is
+ :: dependent on the parse tree of this file. There are two valid
+ :: responses, one where we send a spurious move about %post-b
+ :: because it was the entry which was evicted from the cache and one
+ :: where we don't because it wasn't. Check both cases.
+ ::
+ ?: =(length 2)
+ :: the simple case where we don't send a spurious post-b %made
+ ::
?> ?=([^ ^ ~] moves)
::
%- check-post-made :*
date=~1234.5.9
title='post-a'
contents="post-a-contents-changed"
+ ==
+ :: the complex case
+ ::
+ :: Not only do we send a spurious %made, we don't have a set order
+ :: that these events happen in, so check both ways.
+ ::
+ ?> ?=([^ ^ ^ ~] moves)
+ ::
+ =/ post-a-first=tang
+ %+ welp
+ %- check-post-made :*
+ move=i.moves
+ duct=~[/post-a]
+ type=scry-type
+ date=~1234.5.9
+ title='post-a'
+ contents="post-a-contents-changed"
+ ==
+ %- check-post-made :*
+ move=i.t.moves
+ duct=~[/post-b]
+ type=scry-type
+ date=~1234.5.9
+ title='post-b'
+ contents="post-b-contents"
+ ==
+ :: if we got a ~ for post-a-first, everything is fine
+ ::
+ ?~ post-a-first
+ ~
+ :: otherwise, its either post-b first or an error.
+ ::
+ :: Either way, return post-b first check.
+ ::
+ %+ welp
+ %- check-post-made :*
+ move=i.moves
+ duct=~[/post-b]
+ type=scry-type
+ date=~1234.5.9
+ title='post-b'
+ contents="post-b"
+ ==
+ ::
+ %- check-post-made :*
+ move=i.t.moves
+ duct=~[/post-a]
+ type=scry-type
+ date=~1234.5.9
+ title='post-a'
+ contents="post-a-contents-changed"
== ==
::
=^ results5 ford
|
dev-tools/mpi4py: pivot to python3 only build | %define pname mpi4py
%define PNAME %(echo %{pname} | tr [a-z] [A-Z])
-Name: python-%{pname}-%{compiler_family}-%{mpi_family}%{PROJ_DELIM}
+%if 0%{?sles_version} || 0%{?suse_version}
+%define python3_prefix python3
+%else
+%define python3_prefix python34
+%endif
+
+Name: %{python3_prefix}-%{pname}-%{compiler_family}-%{mpi_family}%{PROJ_DELIM}
Version: 3.0.0
Release: 1%{?dist}
Summary: Python bindings for the Message Passing Interface (MPI) standard.
@@ -31,11 +37,11 @@ Group: %{PROJ_NAME}/dev-tools
Url: https://bitbucket.org/mpi4py/mpi4py
Source0: https://bitbucket.org/mpi4py/mpi4py/downloads/%{pname}-%{version}.tar.gz
Source1: OHPC_macros
-BuildRequires: python-devel
-BuildRequires: python-setuptools
+BuildRequires: %{python3_prefix}-devel
+BuildRequires: %{python3_prefix}-setuptools
#BuildRequires: python-Cython
Requires: lmod%{PROJ_DELIM} >= 7.6.1
-Requires: python
+Requires: %{python3_prefix}
# Default library install path
%define install_path %{OHPC_LIBS}/%{compiler_family}/%{mpi_family}/%{pname}/%version
@@ -56,13 +62,13 @@ find . -type f -name "*.py" -exec sed -i "s|#!/usr/bin/env python||" {} \;
# OpenHPC compiler/mpi designation
%ohpc_setup_compiler
-python setup.py build
+%__python3 setup.py build
%install
# OpenHPC compiler/mpi designation
%ohpc_setup_compiler
-python setup.py install --prefix=%{install_path} --root=%{buildroot}
+%__python3 setup.py install --prefix=%{install_path} --root=%{buildroot}
# OpenHPC module file
%{__mkdir_p} %{buildroot}%{OHPC_MODULEDEPS}/%{compiler_family}-%{mpi_family}/%{pname}
@@ -72,12 +78,12 @@ python setup.py install --prefix=%{install_path} --root=%{buildroot}
proc ModulesHelp { } {
puts stderr " "
-puts stderr "This module loads the %{pname} library built with the %{compiler_family} compiler"
+puts stderr "This module loads the %{python3_prefix}-%{pname} library built with the %{compiler_family} compiler"
puts stderr "toolchain and the %{mpi_family} MPI library."
puts stderr "\nVersion %{version}\n"
}
-module-whatis "Name: %{pname} built with %{compiler_family} compiler and %{mpi_family}"
+module-whatis "Name: %{python3_prefix}-%{pname} built with %{compiler_family} compiler and %{mpi_family}"
module-whatis "Version: %{version}"
module-whatis "Category: python module"
module-whatis "Description: %{summary}"
@@ -85,7 +91,7 @@ module-whatis "URL %{url}"
set version %{version}
-prepend-path PYTHONPATH %{install_path}/lib64/python2.7/site-packages
+prepend-path PYTHONPATH %{install_path}/lib64/python3.4/site-packages
setenv %{PNAME}_DIR %{install_path}
|
rbd: misc fixes | @@ -96,7 +96,7 @@ static void tcmu_rbd_service_status_update(struct tcmu_device *dev,
ret = rados_service_update_status(state->cluster, status_buf);
if (ret < 0) {
- tcmu_dev_err(dev, "Could not update service status. (Err %d\n",
+ tcmu_dev_err(dev, "Could not update service status. (Err %d)\n",
ret);
}
@@ -247,7 +247,7 @@ static int tcmu_rbd_image_open(struct tcmu_device *dev)
ret = rados_create(&state->cluster, NULL);
if (ret < 0) {
- tcmu_dev_dbg(dev, "Could not create cluster. (Err %d)\n", ret);
+ tcmu_dev_err(dev, "Could not create cluster. (Err %d)\n", ret);
return ret;
}
|
fix code that sets sample rate in sdr-receiver-wide.c | @@ -145,6 +145,7 @@ int main ()
/* set sample rate */
if(value < 6 || value > 64) continue;
*rx_rate = value;
+ break;
case 1:
/* set first phase increment */
if(value < 0 || value > 61440000) continue;
|
Add test for ompx_<ext> extensions for fast/unsafe/safe FP atomic hint values. | @@ -25,10 +25,64 @@ int main() {
sum+=1.0;
}
+ if (sum != (double) n) {
+ printf("Error with fast fp atomics, got %lf, expected %lf", sum, (double) n);
+ err = 1;
+ }
+
+ sum = 0.0;
+
+ #pragma omp target teams distribute parallel for map(tofrom:sum)
+ for(int i = 0; i < n; i++) {
+ #pragma omp atomic hint(AMD_unsafe_fp_atomics)
+ sum+=1.0;
+ }
+
if (sum != (double) n) {
printf("Error with unsafe fp atomics, got %lf, expected %lf", sum, (double) n);
err = 1;
}
+ sum = 0.0;
+
+ #pragma omp target teams distribute parallel for map(tofrom:sum)
+ for(int i = 0; i < n; i++) {
+ #pragma omp atomic hint(ompx_fast_fp_atomics)
+ sum+=1.0;
+ }
+
+ if (sum != (double) n) {
+ printf("Error with OMPX fast fp atomics, got %lf, expected %lf", sum, (double) n);
+ err = 1;
+ }
+
+ sum = 0.0;
+
+ #pragma omp target teams distribute parallel for map(tofrom:sum)
+ for(int i = 0; i < n; i++) {
+ #pragma omp atomic hint(ompx_unsafe_fp_atomics)
+ sum+=1.0;
+ }
+
+ if (sum != (double) n) {
+ printf("Error with OMPX unsafe fp atomics, got %lf, expected %lf", sum, (double) n);
+ err = 1;
+ }
+
+ sum = 0.0;
+
+ #pragma omp target teams distribute parallel for map(tofrom:sum)
+ for(int i = 0; i < n; i++) {
+ #pragma omp atomic hint(ompx_safe_fp_atomics)
+ sum+=1.0;
+ }
+
+ if (sum != (double) n) {
+ printf("Error with OMPX safe fp atomics, got %lf, expected %lf", sum, (double) n);
+ err = 1;
+ }
+
+
+
return err;
}
|
Document YR_NAMESPACE structure in C API
It is referenced in Python documentation but not mentioned in the C
API one. | @@ -315,6 +315,10 @@ Data structures
Pointer to a sequence of :c:type:`YR_STRING` structures. To iterate over the
structures use :c:func:`yr_rule_strings_foreach`.
+ .. c:member:: YR_NAMESPACE* ns
+
+ Pointer to a :c:type:`YR_NAMESPACE` structure.
+
.. c:type:: YR_RULES
Data structure representing a set of compiled rules.
@@ -346,6 +350,14 @@ Data structures
String identifier.
+.. c:type:: YR_NAMESPACE
+
+ Data structure representing a rule namespace.
+
+ .. c:member:: const char* name
+
+ Rule namespace.
+
Functions
---------
|
pkarse: Update `pk_group_id_from_specified()` clean-up.
This path updates the clean-up logic of to individually
free each of the the group's structure members
rather than invoke `mbedtls_ecp_group_free()`. | @@ -429,7 +429,11 @@ static int pk_group_id_from_specified(const mbedtls_asn1_buf *params,
ret = pk_group_id_from_group(&grp, grp_id);
cleanup:
- mbedtls_ecp_group_free(&grp);
+ mbedtls_mpi_free(&grp.N);
+ mbedtls_mpi_free(&grp.P);
+ mbedtls_mpi_free(&grp.A);
+ mbedtls_mpi_free(&grp.B);
+ mbedtls_ecp_point_free(&grp.G);
return ret;
}
|
add logging to /tmp | @@ -6,8 +6,10 @@ import (
"io/ioutil"
"os"
"os/exec"
+ "path/filepath"
"strconv"
+ "github.com/criblio/scope/internal"
"github.com/criblio/scope/libscope"
"github.com/criblio/scope/loader"
"github.com/criblio/scope/run"
@@ -316,6 +318,9 @@ func extract(filterFile string) error {
// Start performs setup of scope in the host and containers
func Start(filename string) error {
+ filePerms := os.FileMode(0644)
+ internal.CreateLogFile(filepath.Join("/tmp/scope.log"), filePerms)
+
cfgData, err := ioutil.ReadFile(filename)
if err != nil {
log.Error().
|
fix coverity warning in api_format.c | @@ -2699,7 +2699,7 @@ vl_api_dhcp_compl_event_t_handler (vl_api_dhcp_compl_event_t * mp)
{
u8 *s, i;
- s = format (s, "DHCP compl event: pid %d %s hostname %s host_addr %U "
+ s = format (0, "DHCP compl event: pid %d %s hostname %s host_addr %U "
"host_mac %U router_addr %U",
ntohl (mp->pid), mp->lease.is_ipv6 ? "ipv6" : "ipv4",
mp->lease.hostname,
@@ -2713,6 +2713,7 @@ vl_api_dhcp_compl_event_t_handler (vl_api_dhcp_compl_event_t * mp)
mp->lease.domain_server[i].address);
errmsg ((char *) s);
+ vec_free (s);
}
static void vl_api_dhcp_compl_event_t_handler_json
|
BugID:17401886: fix white scan missing break in LoRaMacFCntHandler.c | @@ -177,9 +177,11 @@ LoRaMacFCntHandlerStatus_t LoRaMacGetFCntDown( AddressIdentifier_t addrID, FType
case MULTICAST_1_ADDR:
*fCntID = MC_FCNT_DOWN_1;
previousDown = FCntHandlerNvmCtx.FCntList.McFCntDown1;
+ break;
case MULTICAST_2_ADDR:
*fCntID = MC_FCNT_DOWN_2;
previousDown = FCntHandlerNvmCtx.FCntList.McFCntDown3;
+ break;
case MULTICAST_3_ADDR:
*fCntID = MC_FCNT_DOWN_3;
previousDown = FCntHandlerNvmCtx.FCntList.McFCntDown3;
|
Fixed fpgaOpen() error case goto. | @@ -164,7 +164,7 @@ int main(int argc, char *argv[])
goto out_destroy_tok;
} else {
res = fpgaOpen(fpga_device_token, &fpga_device_handle, FPGA_OPEN_SHARED);
- ON_ERR_GOTO(res, out_close, "opening accelerator");
+ ON_ERR_GOTO(res, out_destroy_tok, "opening accelerator");
res = fpgaCreateEventHandle(&eh);
ON_ERR_GOTO(res, out_close, "creating event handle");
|
advanced_https_ota_example: Demonstrate use of init_complete_callback to set custom headers | @@ -52,6 +52,14 @@ static esp_err_t validate_image_header(esp_app_desc_t *new_app_info)
return ESP_OK;
}
+static esp_err_t _http_client_init_cb(esp_http_client_handle_t http_client)
+{
+ esp_err_t err = ESP_OK;
+ /* Uncomment to add custom headers to HTTP request */
+ // err = esp_http_client_set_header(http_client, "Custom-Header", "Value");
+ return err;
+}
+
void advanced_ota_example_task(void *pvParameter)
{
ESP_LOGI(TAG, "Starting Advanced OTA example");
@@ -83,6 +91,7 @@ void advanced_ota_example_task(void *pvParameter)
esp_https_ota_config_t ota_config = {
.http_config = &config,
+ .http_client_init_cb = _http_client_init_cb, // Register a callback to be invoked after esp_http_client is initialized
};
esp_https_ota_handle_t https_ota_handle = NULL;
|
Allow calling ResourceImporter.find_spec without path.
This is undocumented but Python expects that it works when it calls
finder.find_spec(final_name) in pkgutil.extend_path.
Note: mandatory check (NEED_CHECK) was skipped | @@ -137,7 +137,7 @@ class ResourceImporter(object):
if k not in self.memory:
self.memory.add(k)
- def find_spec(self, fullname, path, target=None):
+ def find_spec(self, fullname, path=None, target=None):
try:
is_package = self.is_package(fullname)
except ImportError:
|
Minor variable naming change | <readlist name="QCB" cond="RTX_En && (QCB_Rd == 0) && os_Info.mpi_message_queue" type="osRtxMessageQueue_t" offset="mp_mqueue.block_base" count="mp_mqueue.max_blocks" />
<!-- Read common memory pool block info (MEM) -->
- <readlist name="mem_info" cond="RTX_En && os_Info.mem_common" type="mem_head_t" offset="os_Info.mem_common" count="1"/>
-
- <!-- Read common memory pool block info (MEM) -->
+ <readlist name="mem_head" cond="RTX_En && os_Info.mem_common" type="mem_head_t" offset="os_Info.mem_common" count="1"/>
<readlist name="mem_bl" cond="RTX_En && os_Info.mem_common" type="mem_block_t" offset="os_Info.mem_common + 8" next="next"/>
<list cond="mem_bl._count > 1" name="i" start="0" limit="mem_bl._count-1">
<item property="Round Robin" value="Disabled" cond="(os_Config.robin_timeout == 0) && (RTX_En != 0)" />
<item property="Round Robin Tick Count" value="%d[os_Info.thread_robin_tick]" cond="(os_Config.robin_timeout > 0) && (RTX_En != 0)" />
<item property="Round Robin Timeout" value="%d[os_Config.robin_timeout]" cond="(os_Config.robin_timeout > 0) && (RTX_En != 0)" />
- <item property="Global Dynamic Memory" value="Base: %x[os_Config.mem_common_addr], Size: %d[os_Config.mem_common_size], Used: %d[mem_info.used]" cond="RTX_En != 0"/>
+ <item property="Global Dynamic Memory" value="Base: %x[os_Config.mem_common_addr], Size: %d[os_Config.mem_common_size], Used: %d[mem_head.used]" cond="RTX_En != 0"/>
<item property="Stack Overrun Check" value="%t[stack_check ? "Enabled" : "Disabled"]" cond="RTX_En != 0"/>
<item property="Stack Usage Watermark" value="%t[stack_wmark ? "Enabled" : "Disabled"]" cond="RTX_En != 0"/>
<item property="Default Thread Stack Size" value="%d[os_Config.thread_stack_size]" cond="RTX_En != 0"/>
|
mesh: shell: Disable input actions and disable output string action
Disable for convenience when using Mesh Android app. | @@ -438,11 +438,11 @@ static struct bt_mesh_prov prov = {
.static_val = NULL,
.static_val_len = 0,
.output_size = 4,
- .output_actions = (BT_MESH_BLINK | BT_MESH_BEEP | BT_MESH_DISPLAY_NUMBER | BT_MESH_DISPLAY_STRING),
+ .output_actions = (BT_MESH_BLINK | BT_MESH_BEEP | BT_MESH_DISPLAY_NUMBER),
.output_number = output_number,
.output_string = output_string,
.input_size = 4,
- .input_actions = (BT_MESH_ENTER_NUMBER | BT_MESH_ENTER_STRING),
+ .input_actions = 0,
.input = input,
};
|
imgtool: Fix output of confirmed image in HEX format
The image_ok was written to the wrong offset
when outputting HEX format. This commit fixes that.
Drive-by change: Use actual length of boot magic
instead of assuming it's 16 bytes long. | @@ -243,12 +243,11 @@ class Image():
self.enctlv_len)
trailer_addr = (self.base_addr + self.slot_size) - trailer_size
if self.confirm and not self.overwrite_only:
- magic_size = 16
- magic_align_size = align_up(magic_size, self.max_align)
+ magic_align_size = align_up(len(self.boot_magic), self.max_align)
image_ok_idx = -(magic_align_size + self.max_align)
- flag = bytearray([self.erased_val] * magic_align_size)
+ flag = bytearray([self.erased_val] * self.max_align)
flag[0] = 0x01 # image_ok = 0x01
- h.puts(trailer_addr + image_ok_idx, bytes(flag))
+ h.puts(trailer_addr + trailer_size + image_ok_idx, bytes(flag))
h.puts(trailer_addr + (trailer_size - len(self.boot_magic)),
bytes(self.boot_magic))
h.tofile(path, 'hex')
|
pbio/drivebase: Consolidate active check.
This was used in two places and a third will be added shortly, so define one function for it. | @@ -154,6 +154,16 @@ static void pbio_drivebase_stop_servo_control(pbio_drivebase_t *db) {
pbio_control_stop(&db->right->control);
}
+/**
+ * Checks if both drive base controllers are active.
+ *
+ * @param [in] drivebase Pointer to this drivebase instance.
+ * @return True if heading and distance control are active, else false.
+ */
+static bool pbio_drivebase_control_is_active(pbio_drivebase_t *db) {
+ return pbio_control_is_active(&db->control_distance) && pbio_control_is_active(&db->control_heading);
+}
+
/**
* Drivebase stop function that can be called from a servo.
*
@@ -171,7 +181,7 @@ static pbio_error_t pbio_drivebase_stop_from_servo(void *drivebase, bool clear_p
pbio_drivebase_t *db = drivebase;
// If drive base control is not active, there is nothing we need to do.
- if (!pbio_control_is_active(&db->control_distance) && !pbio_control_is_active(&db->control_heading)) {
+ if (!pbio_drivebase_control_is_active(db)) {
return PBIO_SUCCESS;
}
@@ -669,7 +679,7 @@ pbio_error_t pbio_drivebase_is_stalled(pbio_drivebase_t *db, bool *stalled, uint
pbio_error_t err;
// If drive base control is active, look at controller state.
- if (pbio_control_is_active(&db->control_distance) && pbio_control_is_active(&db->control_heading)) {
+ if (pbio_drivebase_control_is_active(db)) {
uint32_t stall_duration_distance; // ticks, 0 on false
uint32_t stall_duration_heading; // ticks, 0 on false
bool stalled_heading = pbio_control_is_stalled(&db->control_heading, &stall_duration_heading);
|
util/mkerr.pl: avoid getting an annoying warning about negative count | @@ -486,6 +486,7 @@ EOF
print OUT "\n/*\n * $lib function codes.\n */\n";
foreach my $i ( @function ) {
my $z = 48 - length($i);
+ $z = 0 if $z < 0;
if ( $fcodes{$i} eq "X" ) {
$fassigned{$lib} =~ m/^:([^:]*):/;
my $findcode = $1;
@@ -503,6 +504,7 @@ EOF
print OUT "\n/*\n * $lib reason codes.\n */\n";
foreach my $i ( @reasons ) {
my $z = 48 - length($i);
+ $z = 0 if $z < 0;
if ( $rcodes{$i} eq "X" ) {
$rassigned{$lib} =~ m/^:([^:]*):/;
my $findcode = $1;
|
Fix segfault on recording with old FFmpeg
The AVPacket fields side_data and side_data_elems were not initialized
by av_packet_ref() in old FFmpeg versions (prior to [1]).
As a consequence, on av_packet_unref(), side_data was freed, causing a
segfault.
Fixes <https://github.com/Genymobile/scrcpy/issues/707>
[1]: <http://git.videolan.org/gitweb.cgi/ffmpeg.git/?p=ffmpeg.git;a=commitdiff;h=3b4026e15110547892d5d770b6b43c9e34df458f> | @@ -33,6 +33,11 @@ record_packet_new(const AVPacket *packet) {
if (!rec) {
return NULL;
}
+
+ // av_packet_ref() does not initialize all fields in old FFmpeg versions
+ // See <https://github.com/Genymobile/scrcpy/issues/707>
+ av_init_packet(&rec->packet);
+
if (av_packet_ref(&rec->packet, packet)) {
SDL_free(rec);
return NULL;
|
gpexpand: refactor table_expand_error global variable
Remove global variable table_expand_error by checking the pool of done
ExpandCommand(s). | @@ -58,7 +58,6 @@ FILE_SPACES_INPUT_FILE_LINE_1_PREFIX = "filespaceOrder"
#global var
_gp_expand = None
-table_expand_error = False
description = ("""
Adds additional segments to a pre-existing GPDB Array.
@@ -2219,7 +2218,6 @@ UPDATE gp_distribution_policy
def perform_expansion(self):
"""Performs the actual table re-organiations"""
- global table_expand_error
expansionStart = datetime.datetime.now()
# setup a threadpool
@@ -2247,6 +2245,8 @@ UPDATE gp_distribution_policy
cmd = ExpandCommand(name=name, status_url=self.dburl, table=tbl, options=self.options)
self.queue.addCommand(cmd)
+ table_expand_error = False
+
stopTime = None
stoppedEarly = False
if self.options.end:
@@ -2268,6 +2268,13 @@ UPDATE gp_distribution_policy
self.queue.haltWork()
self.queue.joinWorkers()
+ # Doing this after the halt and join workers guarantees that no new completed items can be added
+ # while we're doing a check
+ for expandCommand in self.queue.getCompletedItems():
+ if expandCommand.table_expand_error:
+ table_expand_error = True
+ break
+
if stoppedEarly:
logger.info('End time reached. Stopping expansion.')
sql = "INSERT INTO %s.%s VALUES ( 'EXPANSION STOPPED', '%s' ) " % (
@@ -2733,12 +2740,12 @@ class ExpandCommand(SQLCommand):
self.cmdStr = "Expand %s.%s" % (table.dbname, table.fq_name)
self.table_url = copy.deepcopy(status_url)
self.table_url.pgdb = table.dbname
+ self.table_expand_error = False
SQLCommand.__init__(self, name)
pass
def run(self, validateAfter=False):
- global table_expand_error
# connect.
status_conn = None
table_conn = None
@@ -2753,7 +2760,7 @@ class ExpandCommand(SQLCommand):
logger.error(ex.__str__().strip())
if status_conn: status_conn.close()
if table_conn: table_conn.close()
- table_expand_error = True
+ self.table_expand_error = True
return
# validate table hasn't been dropped
@@ -2785,7 +2792,7 @@ class ExpandCommand(SQLCommand):
except Exception, ex:
if ex.__str__().find('canceling statement due to user request') == -1 and not self.cancel_flag:
- table_expand_error = True
+ self.table_expand_error = True
if self.options.verbose:
logger.exception(ex)
logger.error('Table %s.%s failed to expand: %s' % (self.table.dbname.decode('utf-8'),
@@ -3039,7 +3046,6 @@ def sig_handler(sig):
# --------------------------------------------------------------------------
def main(options, args, parser):
global _gp_expand
- global table_expand_error
remove_pid = True
try:
|
libppd: In string.c added _ppdMutexUnlock() also before abort()
Issue
Note: This actually only applied when building with DEBUG_GUARDS set. | @@ -93,7 +93,10 @@ _ppdStrAlloc(const char *s) /* I - String */
item->ref_count));
if (item->guard != _PPD_STR_GUARD)
+ {
+ _ppdMutexUnlock(&sp_mutex);
abort();
+ }
#endif /* DEBUG_GUARDS */
_ppdMutexUnlock(&sp_mutex);
@@ -292,6 +295,7 @@ _ppdStrFree(const char *s) /* I - String to free */
if (key->guard != _PPD_STR_GUARD)
{
DEBUG_printf(("5_ppdStrFree: Freeing string %p(%s), guard=%08x, ref_count=%d", key, key->str, key->guard, key->ref_count));
+ _ppdMutexUnlock(&sp_mutex);
abort();
}
#endif /* DEBUG_GUARDS */
|
linux-raspberrypi: Updating the linux revision to resolve video rendering issue | -LINUX_VERSION ?= "4.19.71"
+LINUX_VERSION ?= "4.19.75"
LINUX_RPI_BRANCH ?= "rpi-4.19.y"
-SRCREV = "13ce09db830e0c2fe524460b0673afb974359bc2"
+SRCREV = "642e12d892e694214e387208ebd9feb4a654d287"
require linux-raspberrypi_4.19.inc
|
os/board/rtl8721csm: Enable RTK debug message | @@ -1325,6 +1325,8 @@ void app_start(void)
app_section_init();
_memset((void *) __bss_start__, 0, (__bss_end__ - __bss_start__));
+ DBG_ERR_MSG_ON(MODULE_MISC); /* Enable debug log for hard fault handler */
+
#ifdef CONFIG_AMEBAD_TRUSTZONE
BOOT_IMG3();
#endif
|
update comments in sdr_receiver_hpsdr/rx.tcl | -# Create xlslice
+# Create port_slicer
cell pavel-demin:user:port_slicer:1.0 slice_0 {
DIN_WIDTH 8 DIN_FROM 0 DIN_TO 0
}
-# Create xlslice
+# Create port_slicer
cell pavel-demin:user:port_slicer:1.0 slice_1 {
DIN_WIDTH 288 DIN_FROM 15 DIN_TO 0
}
for {set i 0} {$i <= 7} {incr i} {
- # Create xlslice
+ # Create port_slicer
cell pavel-demin:user:port_slicer:1.0 slice_[expr $i + 2] {
DIN_WIDTH 288 DIN_FROM [expr $i + 16] DIN_TO [expr $i + 16]
}
- # Create axis_constant
+ # Create port_selector
cell pavel-demin:user:port_selector:1.0 selector_$i {
DOUT_WIDTH 16
} {
@@ -23,7 +23,7 @@ for {set i 0} {$i <= 7} {incr i} {
din /adc_0/m_axis_tdata
}
- # Create xlslice
+ # Create port_slicer
cell pavel-demin:user:port_slicer:1.0 slice_[expr $i + 10] {
DIN_WIDTH 288 DIN_FROM [expr 32 * $i + 63] DIN_TO [expr 32 * $i + 32]
}
@@ -64,7 +64,7 @@ cell xilinx.com:ip:xlconstant:1.1 const_0
for {set i 0} {$i <= 15} {incr i} {
- # Create xlslice
+ # Create port_slicer
cell pavel-demin:user:port_slicer:1.0 dds_slice_$i {
DIN_WIDTH 48 DIN_FROM [expr 24 * ($i % 2) + 20] DIN_TO [expr 24 * ($i % 2)]
} {
|
modules/robotics: fix backwards compat
the start method does not exist anymore | @@ -11,6 +11,6 @@ from tools import wait
class DriveBase(DriveBase_c):
# Add Legacy EV3 MicroPython 1.0 function
def drive_time(self, speed, steering, time):
- self.start(speed, steering)
+ self.drive(speed, steering)
wait(time)
self.stop()
|
Update windres file name
use windres.exe name | @@ -60,6 +60,7 @@ toolchain("mingw")
toolchain:add("toolset", "ex", path.join(bindir, "ar"))
toolchain:add("toolset", "strip", path.join(bindir, "strip"))
toolchain:add("toolset", "ranlib", path.join(bindir, "ranlib"))
+ toolchain:add("toolset", "mrc", path.join(bindir, "windres"))
end
toolchain:add("toolset", "cc", cross .. "gcc")
toolchain:add("toolset", "cxx", cross .. "gcc", cross .. "g++")
|
fix: make install should include common/ header files | @@ -95,7 +95,7 @@ install : all
install -d $(PREFIX)/lib/
install -m 644 $(LIBDISCORD) $(PREFIX)/lib/
install -d $(PREFIX)/include/
- install -m 644 *.h *.hpp $(PREFIX)/include/
+ install -m 644 *.h *.hpp common/*.h common/*.hpp $(PREFIX)/include/
clean :
rm -rf $(OBJDIR) *.exe test/*.exe bots/*.exe
|
Add CMake gitignore. | @@ -349,3 +349,16 @@ hardware/Middlewares/
hardware/STM32H750VBTx_FLASH.ld
hardware/Src/
hardware/startup_stm32h750xx.s
+
+#CMAKE from https://github.com/github/gitignore/blob/master/CMake.gitignore
+CMakeLists.txt.user
+CMakeCache.txt
+CMakeFiles
+CMakeScripts
+Testing
+Makefile
+cmake_install.cmake
+install_manifest.txt
+compile_commands.json
+CTestTestfile.cmake
+_deps
|
do final commit for _link files after all packages complete | @@ -102,8 +102,6 @@ update_pkg_if_link () {
perl -pi -e 's/project=\'\S+\'/project=\'${branchNew}\'/ ${localdir}/_link || ERROR "unable to update parent in _link for $1"
fi
- osc ci ${localdir} -m "committing updated _link file for $1"
-
cd -
} # end update_pkg_if_link()
@@ -192,5 +190,8 @@ done
if [[ $found_link -eq 1 ]];then
echo " "
- echo "At least 1 _link file updated. cd to $TMPDIR and commit changes once OBS has published binaries..."
+ echo "At least 1 _link file updated. committing staged changes in $TMPDIR..."
+ cd $TMPDIR
+ osc ci -m "committing updated _link files"
+ cd -
fi
|
Fix UT for markbits. | @@ -20,8 +20,6 @@ import (
. "github.com/onsi/ginkgo/extensions/table"
. "github.com/onsi/gomega"
"github.com/projectcalico/felix/markbits"
- "fmt"
- "golang.org/x/tools/cmd/guru/testdata/src/alias"
)
const (
@@ -112,21 +110,14 @@ func init() {
)
DescribeTable("MarkBits map number to mark",
- func(mask uint32, number int, mark uint32) {
+ func(mask uint32, number int, expectedMark uint32) {
m := markbits.NewMarkBitsManager(mask, "MapNumberToMark")
resultMark, err := m.MapNumberToMark(number)
if err != nil {
- Expect(mark).To(Equal(errMark))
+ Expect(expectedMark).To(Equal(errMark))
} else {
- Expect(resultMark).To(Equal(mark))
- }
-
- resultNumber, err := m.MapMarkToNumber(mark)
- if err != nil {
- Expect(number).To(Equal(errNumber))
- } else {
- Expect(resultNumber).To(Equal(number)))
+ Expect(resultMark).To(Equal(expectedMark))
}
},
@@ -136,6 +127,25 @@ func init() {
Entry("should map with max bits", uint32(0xffffffff), 0xffffffff, uint32(0xffffffff)),
Entry("should not map with less bits", uint32(0x12300004), 0x1235, errMark),
)
+
+ DescribeTable("MarkBits map mark to number",
+ func(mask uint32, mark uint32, expectedNumber int) {
+ m := markbits.NewMarkBitsManager(mask, "MapNumberToMark")
+
+ resultNumber, err := m.MapMarkToNumber(mark)
+ if err != nil {
+ Expect(expectedNumber).To(Equal(errNumber))
+ } else {
+ Expect(resultNumber).To(Equal(expectedNumber))
+ }
+ },
+
+ Entry("should map with one bit", uint32(0x10), uint32(0x10), 1),
+ Entry("should map with some bits", uint32(0x12300004), uint32(0x2300004), 0xf),
+ Entry("should map with all bits", uint32(0x12300004), uint32(0x12300004), 0x1f),
+ Entry("should map with max bits", uint32(0xffffffff), uint32(0xffffffff), 0xffffffff),
+ Entry("should not map with less bits", uint32(0x12300004), uint32(0x1230005), errNumber),
+ )
}
func getMarkBitsResult(m *markbits.MarkBitsManager, size int) (*markBitsResult, error) {
|
BugID:23722169:Fix for http resp buffer not memset to 0 issue | @@ -236,6 +236,7 @@ static int32_t httpc_auth(const char *device_id, const char *product_key,
goto exit;
}
+ memset(rsp_buf, 0, sizeof(rsp_buf));
ret = httpc_recv_response(httpc_handle, rsp_buf, RSP_BUF_SIZE, &rsp_info, 10000);
if (ret < 0) {
++auth_req_fail_times;
@@ -290,6 +291,7 @@ static int32_t httpc_ota(const char *uri)
}
while (ota_file_size == 0 || ota_rx_size < ota_file_size) {
+ memset(rsp_buf, 0, sizeof(rsp_buf));
ret = httpc_recv_response(httpc_handle, rsp_buf, RSP_BUF_SIZE, &rsp_info, 10000);
if (ret < 0) {
++ota_req_fail_times;
@@ -371,6 +373,7 @@ static int32_t httpc_ota_head(const char *uri)
goto exit;
}
+ memset(rsp_buf, 0, sizeof(rsp_buf));
ret = httpc_recv_response(httpc_handle, rsp_buf, RSP_BUF_SIZE, &rsp_info, 300000);
if (ret < 0) {
++ota_head_req_fail_times;
@@ -429,6 +432,7 @@ static int32_t httpc_up(char *uri)
goto exit;
}
+ memset(rsp_buf, 0, sizeof(rsp_buf));
ret = httpc_recv_response(httpc_handle, rsp_buf, RSP_BUF_SIZE, &rsp_info, 10000);
if (ret < 0) {
++up_req_fail_times;
|
travis BUGFIX copy-paste mistake | @@ -60,7 +60,7 @@ jobs:
- cd cmocka-1.1.2 && mkdir build && cd build && cmake .. && make -j2 && sudo make install && cd ../..
- wget https://ftp.pcre.org/pub/pcre/pcre2-10.30.tar.gz
- tar -xzf pcre2-10.30.tar.gz
- - cd pcre2-10.30 && ./configure && make -j2 && sudo make install && cd ../..
+ - cd pcre2-10.30 && ./configure && make -j2 && sudo make install && cd ..
script:
- mkdir build && cd build && cmake .. && make -j2 && ctest --output-on-failure && cd -
- stage: Test
@@ -74,7 +74,7 @@ jobs:
- cd cmocka-1.1.2 && mkdir build && cd build && cmake .. && make -j2 && sudo make install && cd ../..
- wget https://ftp.pcre.org/pub/pcre/pcre2-10.30.tar.gz
- tar -xzf pcre2-10.30.tar.gz
- - cd pcre2-10.30 && ./configure && make -j2 && sudo make install && cd ../..
+ - cd pcre2-10.30 && ./configure && make -j2 && sudo make install && cd ..
- pip install --user codecov && export CFLAGS="-coverage"
script:
- mkdir build && cd build && cmake .. && make -j2 && ctest --output-on-failure && cd -
|
Bind a zero pixel unpack buffer if necessary when uploading fonts texture | @@ -111,11 +111,17 @@ bool ImGui_ImplOpenGL3_CreateFontsTexture()
int width, height;
io.Fonts->GetTexDataAsAlpha8(&pixels, &width, &height);
+ GLint last_texture, last_unpack_buffer;
+
// Upload texture to graphics system
- GLint last_texture;
glGetIntegerv(GL_TEXTURE_BINDING_2D, &last_texture);
glGenTextures(1, &g_FontTexture);
glBindTexture(GL_TEXTURE_2D, g_FontTexture);
+ if ((g_IsGLES && g_GlVersion >= 300) || (!g_IsGLES && g_GlVersion >= 210))
+ {
+ glGetIntegerv(GL_PIXEL_UNPACK_BUFFER_BINDING, &last_unpack_buffer);
+ glBindBuffer(GL_PIXEL_UNPACK_BUFFER, 0);
+ }
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
//#ifdef GL_UNPACK_ROW_LENGTH
@@ -129,6 +135,8 @@ bool ImGui_ImplOpenGL3_CreateFontsTexture()
// Restore state
glBindTexture(GL_TEXTURE_2D, last_texture);
+ if ((g_IsGLES && g_GlVersion >= 300) || (!g_IsGLES && g_GlVersion >= 210))
+ glBindBuffer(GL_PIXEL_UNPACK_BUFFER, last_unpack_buffer);
return true;
}
|
Add ".module" to all scripts for better compile errors | @@ -3973,7 +3973,9 @@ class ScriptBuilder {
toScriptString = (name: string, lock: boolean) => {
this._assertStackNeutral();
- return `${this.headers.map((header) => `.include "${header}"`).join("\n")}
+ return `.module ${name}
+
+${this.headers.map((header) => `.include "${header}"`).join("\n")}
${
this.dependencies.length > 0
? `\n.globl ${this.dependencies.join(", ")}\n`
|
hammer: Enable USB suspend and remote wake-up config options
BRANCH=none
TEST=See CLs that enables USB suspend and remote wake-up option.
Commit-Ready: Nicolas Boichat
Tested-by: Nicolas Boichat | #undef CONFIG_USB_MAXPOWER_MA
#define CONFIG_USB_MAXPOWER_MA 100
+#define CONFIG_USB_REMOTE_WAKEUP
+#define CONFIG_USB_SUSPEND
+
#define CONFIG_USB_SERIALNO
/* TODO(drinkcat): Replace this by proper serial number. Note that according to
* USB standard, we must either unset this (iSerialNumber = 0), or have a unique
|
mimxrt: Fix MIMXRT1060 stack and buffer pointers | @@ -139,10 +139,10 @@ static const program_target_t flash = {
{
0x20000001,
0x20000934,
- 0x20000c00
+ 0x20008000
},
- 0x20000000 + 0x00000A00, // mem buffer location
+ 0x20000000 + 0x00004000, // mem buffer location
0x20000000, // location to write prog_blob in target RAM
sizeof(MIMXRT106x_QSPI_4KB_SEC_flash_prog_blob), // prog_blob size
MIMXRT106x_QSPI_4KB_SEC_flash_prog_blob, // address of prog_blob
|
Order macros according to documentation | @@ -57,10 +57,10 @@ License: MIT
!defined(FIO_HASH_KEY2UINT) || !defined(FIO_HASH_KEY_INVALID) || \
!defined(FIO_HASH_KEY_ISINVALID) || !defined(FIO_HASH_KEY_COPY) || \
!defined(FIO_HASH_KEY_DESTROY)
-#define FIO_HASH_COMPARE_KEYS(k1, k2) ((k1) == (k2))
#define FIO_HASH_KEY_TYPE uint64_t
-#define FIO_HASH_KEY2UINT(key) (key)
#define FIO_HASH_KEY_INVALID 0
+#define FIO_HASH_KEY2UINT(key) (key)
+#define FIO_HASH_COMPARE_KEYS(k1, k2) ((k1) == (k2))
#define FIO_HASH_KEY_ISINVALID(key) ((key) == 0)
#define FIO_HASH_KEY_COPY(key) (key)
#define FIO_HASH_KEY_DESTROY(key) ((void)0)
|
ci: Update `wpa_supplicant` codeowners | /components/vfs/ @esp-idf-codeowners/storage
/components/wear_levelling/ @esp-idf-codeowners/storage
/components/wifi_provisioning/ @esp-idf-codeowners/app-utilities/provisioning
-/components/wpa_supplicant/ @esp-idf-codeowners/wifi
+/components/wpa_supplicant/ @esp-idf-codeowners/wifi @esp-idf-codeowners/app-utilities/mbedtls
/components/xtensa/ @esp-idf-codeowners/system
/docs/ @esp-idf-codeowners/docs
|
ivshmem: use v142 toolkit for test app | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Win10 Release|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
+ <PlatformToolset>v142</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Win10 Release|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
+ <PlatformToolset>v142</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
|
Lua links properly
mlib required to build Lua, dl lib used to load compiled plugins from shared libraries. | @@ -117,6 +117,9 @@ else()
)
list(TRANSFORM LUA_SRC PREPEND deps/lua/)
add_library(lua SHARED ${LUA_SRC})
+ target_link_libraries(lua m)
+ target_link_libraries(lua dl)
+ target_compile_definitions(lua PRIVATE -DLUA_USE_DLOPEN)
include_directories(deps/lua)
set(LOVR_LUA lua)
endif()
|
OSSL_CMP_MSG_read(): Fix mem leak on file read error | @@ -1100,9 +1100,8 @@ OSSL_CMP_MSG *OSSL_CMP_MSG_read(const char *file, OSSL_LIB_CTX *libctx,
return NULL;
}
- if ((bio = BIO_new_file(file, "rb")) == NULL)
- return NULL;
- if (d2i_OSSL_CMP_MSG_bio(bio, &msg) == NULL) {
+ if ((bio = BIO_new_file(file, "rb")) == NULL
+ || d2i_OSSL_CMP_MSG_bio(bio, &msg) == NULL) {
OSSL_CMP_MSG_free(msg);
msg = NULL;
}
|
Avoid some NULL dereferences | @@ -202,9 +202,15 @@ static bool internal_ht_insert(SdbHash* ht, bool update, const char* key,
kv->value = (void *)value;
}
kv->key_len = ht->calcsizeK ((void *)kv->key);
+ if (ht->calcsizeV) {
kv->value_len = ht->calcsizeV ((void *)kv->value);
+ } else {
+ kv->value_len = 0;
+ }
if (!internal_ht_insert_kv (ht, kv, update)) {
+ if (ht->freefn) {
ht->freefn (kv);
+ }
return false;
}
return true;
|
Fix docu of ts_bspline_interpolate_catmull_rom. | @@ -1056,7 +1056,7 @@ tsError ts_bspline_interpolate_cubic(const tsReal *points, size_t num_points,
* @return TS_DIM_ZERO
* If \p dimension is 0.
* @return TS_NUM_POINTS
- * If \p num_points is 1.
+ * If \p num_points is 0.
* @return TS_MALLOC
* If allocating memory failed.
*/
|
CGO: use correct linker and linker flags when linking GO_PROGRAM module | @@ -3679,12 +3679,12 @@ module GO_BASE_UNIT: BASE_UNIT {
when ($OS_DARWIN) {
GO_TOOLCHAIN_ENV += ${env:"CC=clang"} ${env:"PATH=$(DEFAULT_DARWIN_X86_64)/bin:$MACOS_SDK_RESOURCE_GLOBAL/usr/bin:$CCTOOLS_ROOT_RESOURCE_GLOBAL/bin"}
- GO_EXTLD = ++extld clang ++extldflags $LD_SDK_VERSION -undefined dynamic_lookup $C_FLAGS_PLATFORM --sysroot=$MACOS_SDK_RESOURCE_GLOBAL $GO_LDFLAGS_GLOBAL
+ GO_EXTLD = ++extld clang ++extldflags $LD_SDK_VERSION -undefined dynamic_lookup $C_FLAGS_PLATFORM --sysroot=$MACOS_SDK_RESOURCE_GLOBAL $LDFLAGS $LDFLAGS_GLOBAL $GO_LDFLAGS_GLOBAL
CGO2_LDFLAGS += $LD_SDK_VERSION -undefined dynamic_lookup
}
elsewhen ($OS_LINUX) {
GO_TOOLCHAIN_ENV += ${env:"CC=clang"} ${env:"PATH=$(DEFAULT_LINUX_X86_64)/bin:$OS_SDK_ROOT_RESOURCE_GLOBAL/usr/bin"}
- GO_EXTLD = ++extld clang ++extldflags $C_FLAGS_PLATFORM --sysroot=$OS_SDK_ROOT_RESOURCE_GLOBAL $GO_LDFLAGS_GLOBAL
+ GO_EXTLD = ++extld clang ++extldflags $C_FLAGS_PLATFORM --sysroot=$OS_SDK_ROOT_RESOURCE_GLOBAL $LDFLAGS $LDFLAGS_GLOBAL $GO_LDFLAGS_GLOBAL
CGO2_LDFLAGS += -Wl,--unresolved-symbols=ignore-all
}
otherwise {
@@ -3706,6 +3706,8 @@ module GO_PROGRAM: GO_BASE_UNIT {
.SYMLINK_POLICY=EXE
SET(MODULE_TYPE PROGRAM)
+ USE_LINKER()
+
when ($MSVC == "yes" || $CYGWIN == "yes") {
MODULE_SUFFIX=.exe
}
|
enlarge example cmake build job parallel num | @@ -193,7 +193,7 @@ build_examples_make:
# same as above, but for CMake
.build_examples_cmake: &build_examples_cmake
extends: .build_template
- parallel: 5
+ parallel: 8
artifacts:
when: always
paths:
|
Copy extra information from 3.1.2 release notes from 3.1RC to develop. | @@ -19,6 +19,7 @@ enhancements and bug-fixes that were added to this release.</p>
<li><a href="#Bugs_fixed">Bug Fixes</a></li>
<li><a href="#Enhancements">Enhancements</a></li>
<li><a href="#Dev_changes">Changes for VisIt developers</a></li>
+ <li><a href="#Doc_changes">Changes to Visit documentation</a></li>
</ul>
<a name="Bugs_fixed"></a>
@@ -33,9 +34,9 @@ enhancements and bug-fixes that were added to this release.</p>
<li>Fixed a crash with the generation of ghost zones using global node ids where there were NULL domains.</li>
<li>Fixed a bug that caused trilinear ray casting to have very harsh lighting.</li>
<li>Fixed a bug with importing remote hosts.</li>
- <li>Fixed a bug preventing full removal of the axes when using OSPRay rendering.</li>
<li>Fixed a bug that was preventing VisIt from correctly generating normals for triangle strips.</li>
<li>Fixed a bug reading files generated with newer Exodus libraries.</li>
+ <li>Fixed a bug preventing full removal of the axes when using OSPRay rendering.</li>
<li>Fixed a bug where 2D axes annotation font settings weren't always saved to config files.</li>
<li>Fixed a bug where lines starting with !TIME and !ENSEMBLE ".visit" files weren't being processed properly and were interpreted as file names.</li>
<li>Fixed a bug that was producing bad volumes on datasets with cells of multiple dimensions.</li>
@@ -67,6 +68,12 @@ enhancements and bug-fixes that were added to this release.</p>
<li>The build_visit script was enhanced to allow VisIt to build on Debian 10.</li>
</ul>
+<a name="Doc_changes"></a>
+<p><b><font size="4">Documentation chagnes in version 3.1.2</font></b></p>
+<ul>
+ <li>Added sphinx docs on Visit's Integral Curve System.</li>
+</ul>
+
<p>Click the following link to view the release notes for the previous version
of VisIt: <a href=relnotes3.1.1.html>3.1.1</a>.</p>
</body>
|
VERSION bump to version 0.10.4 | @@ -28,7 +28,7 @@ set(CMAKE_C_FLAGS_DEBUG "-g -O0")
# set version
set(LIBNETCONF2_MAJOR_VERSION 0)
set(LIBNETCONF2_MINOR_VERSION 10)
-set(LIBNETCONF2_MICRO_VERSION 3)
+set(LIBNETCONF2_MICRO_VERSION 4)
set(LIBNETCONF2_VERSION ${LIBNETCONF2_MAJOR_VERSION}.${LIBNETCONF2_MINOR_VERSION}.${LIBNETCONF2_MICRO_VERSION})
set(LIBNETCONF2_SOVERSION ${LIBNETCONF2_MAJOR_VERSION}.${LIBNETCONF2_MINOR_VERSION})
|
KDB Find: Use underscore to separate test name | @@ -9,7 +9,7 @@ add_msr_test (issue_template "${CMAKE_SOURCE_DIR}/.github/ISSUE_TEMPLATE.md")
add_msr_test (tutorial_cascading "${CMAKE_SOURCE_DIR}/doc/tutorials/cascading.md")
add_msr_test (kdb_complete "${CMAKE_SOURCE_DIR}/doc/help/kdb-complete.md")
add_msr_test (kdb_ls "${CMAKE_SOURCE_DIR}/doc/help/kdb-ls.md" REQUIRED_PLUGINS sync)
-add_msr_test (kdb-find "${CMAKE_SOURCE_DIR}/doc/help/kdb-find.md")
+add_msr_test (kdb_find "${CMAKE_SOURCE_DIR}/doc/help/kdb-find.md")
add_msr_test (tutorial_validation "${CMAKE_SOURCE_DIR}/doc/tutorials/validation.md" REQUIRED_PLUGINS ni validation)
|
ChatWindow: stop unread notice disappearing | @@ -61,6 +61,7 @@ class ChatWindow extends Component<
private virtualList: VirtualScroller | null;
private unreadMarkerRef: React.RefObject<HTMLDivElement>;
private prevSize = 0;
+ private unreadSet = false;
INITIALIZATION_MAX_TIME = 100;
@@ -116,7 +117,9 @@ class ChatWindow extends Component<
dismissedInitialUnread() {
const { unreadCount, graph } = this.props;
- return this.state.unreadIndex.neq(graph.keys()?.[unreadCount]?.[0] ?? bigInt.zero)
+
+ return this.state.unreadIndex.neq(bigInt.zero) &&
+ this.state.unreadIndex.neq(graph.keys()?.[unreadCount]?.[0] ?? bigInt.zero);
}
handleWindowBlur() {
@@ -132,16 +135,21 @@ class ChatWindow extends Component<
componentDidUpdate(prevProps: ChatWindowProps, prevState) {
const { history, graph, unreadCount, graphSize, station } = this.props;
+ if(unreadCount === 0 && prevProps.unreadCount !== unreadCount) {
+ this.unreadSet = true;
+ }
if(this.prevSize !== graphSize) {
this.prevSize = graphSize;
- if(this.dismissedInitialUnread() &&
- this.virtualList?.startOffset() < 5) {
- this.dismissUnread();
- }
if(this.state.unreadIndex.eq(bigInt.zero)) {
this.calculateUnreadIndex();
}
+ if(this.unreadSet &&
+ this.dismissedInitialUnread() &&
+ this.virtualList?.startOffset() < 5) {
+ this.dismissUnread();
+ }
+
}
if (unreadCount > prevProps.unreadCount) {
@@ -318,7 +326,7 @@ class ChatWindow extends Component<
return (
<Col height='100%' overflow='hidden' position='relative'>
- { !this.dismissedInitialUnread() &&
+ { this.dismissedInitialUnread() &&
(<UnreadNotice
unreadCount={unreadCount}
unreadMsg={
|
Update README.md
Added the Pwm column | @@ -60,15 +60,15 @@ The **preview** versions are continuous builds of the reference targets. They in
The above firmware builds include support for the class libraries and features marked bellow.
-| Target | Gpio | Spi | I2c | Events | Native | SWO |
-|:-|:-:|:-:|:-:|:-:|:-:|:-:|
-| ST_STM32F4_DISCOVERY | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | | :heavy_check_mark: |
-| ST_STM32F429I_DISCOVERY | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | | :heavy_check_mark: |
-| ST_NUCLEO64_F091RC | | | | | | :heavy_check_mark: |
-| ST_NUCLEO144_F746ZG | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | | |
-| ST_STM32F769I_DISCOVERY | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | | :heavy_check_mark: |
-| MBN_QUAIL | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | | |
-| NETDUINO3_WIFI | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | | |
+| Target | Gpio | Spi | I2c | Pwm | Events | Native | SWO |
+|:-|:-:|:-:|:-:|:-:|:-:|:-:|:-:|
+| ST_STM32F4_DISCOVERY | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | | :heavy_check_mark: | | :heavy_check_mark: |
+| ST_STM32F429I_DISCOVERY | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | | :heavy_check_mark: |
+| ST_NUCLEO64_F091RC | | | | | | | :heavy_check_mark: |
+| ST_NUCLEO144_F746ZG | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | | :heavy_check_mark: | | |
+| ST_STM32F769I_DISCOVERY | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | | :heavy_check_mark: | | :heavy_check_mark: |
+| MBN_QUAIL | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | | |
+| NETDUINO3_WIFI | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | | |
## Feedback and documentation
|
apps/examples/flowc: Add some syslog output to flush the syslog interrupt buffer | @@ -203,6 +203,14 @@ int flowc_receiver(int argc, char **argv)
usleep(1000 * CONFIG_EXAMPLES_FLOWC_RECEIVER_DELAY);
#endif
+
+#ifdef CONFIG_SYSLOG_INTBUFFER
+ /* Just to force a flush of syslog interrupt buffer. May also provide
+ * a handy indication that the test is still running.
+ */
+
+ syslog(LOG_INFO, ".");
+#endif
}
close(fd);
|
CLEANUP: refactored do_item_unlink() function. | @@ -1009,6 +1009,7 @@ static void do_item_unlink(hash_item *it, enum item_unlink_cause cause)
if ((it->iflag & ITEM_LINKED) != 0) {
CLOG_ITEM_UNLINK(it, cause);
+
/* unlink the item from LUR list */
item_unlink_q(it);
@@ -1019,14 +1020,21 @@ static void do_item_unlink(hash_item *it, enum item_unlink_cause cause)
/* unlink the item from prefix info */
stotal = ITEM_stotal(it);
assoc_prefix_unlink(it, stotal, (cause != ITEM_UNLINK_REPLACE ? true : false));
- if (IS_COLL_ITEM(it)) {
- coll_meta_info *info = (coll_meta_info *)item_get_meta(it);
- info->stotal = 0; /* Don't need to decrease space statistics any more */
- }
/* update item statistics */
do_item_stat_unlink(it, stotal);
+ if (IS_COLL_ITEM(it)) {
+ /* IMPORTANT NOTE)
+ * The element space statistics has already been decreased.
+ * So, we must not decrease the space statistics any more
+ * even if the elements are freed later.
+ * For that purpose, we set info->stotal to 0 like below.
+ */
+ coll_meta_info *info = (coll_meta_info *)item_get_meta(it);
+ info->stotal = 0;
+ }
+
/* free the item if no one reference it */
if (it->refcount == 0) {
do_item_free(it);
|
Gateway scanner: cleanup reply only after finish or error | @@ -129,6 +129,7 @@ void GatewayScanner::requestFinished(QNetworkReply *reply)
{
d->handleEvent(EventGotReply);
}
+ reply->deleteLater();
}
void GatewayScannerPrivate::processReply()
@@ -139,8 +140,7 @@ void GatewayScannerPrivate::processReply()
}
QNetworkReply *r = reply;
- reply = 0;
- r->deleteLater();
+ reply = nullptr;
int code = r->attribute(QNetworkRequest::HttpStatusCodeAttribute).toInt();
@@ -190,6 +190,8 @@ void GatewayScanner::onError(QNetworkReply::NetworkError code)
Q_D(GatewayScanner);
Q_UNUSED(code)
+ sender()->deleteLater();
+
if (!d->timer->isActive())
{
// must be in timeout window
|
driver/accelgyro_icm_common.c: Format with clang-format
BRANCH=none
TEST=none | #define CPRINTS(format, args...) cprints(CC_ACCEL, format, ##args)
#ifdef CONFIG_ACCELGYRO_ICM_COMM_SPI
-static int icm_spi_raw_read(const int addr, const uint8_t reg,
- uint8_t *data, const int len)
+static int icm_spi_raw_read(const int addr, const uint8_t reg, uint8_t *data,
+ const int len)
{
uint8_t cmd = 0x80 | reg;
@@ -151,8 +151,7 @@ int icm_read16(const struct motion_sensor_t *s, const int reg, int *data_ptr)
}
}
#else
- ret = i2c_read16(s->port, s->i2c_spi_addr_flags,
- addr, data_ptr);
+ ret = i2c_read16(s->port, s->i2c_spi_addr_flags, addr, data_ptr);
#endif
return ret;
|
Fix synthesis error
[ci skip] | @@ -285,9 +285,9 @@ module de2_115_top(
// state.
//
sld_virtual_jtag #(
- .SLD_AUTO_INSTANCE_INDEX("NO"),
- .SLD_INSTANCE_INDEX(0),
- .SLD_IR_WIDTH(4)
+ .sld_auto_instance_index("NO"),
+ .sld_instance_index(0),
+ .sld_ir_width(4)
) virtual_jtag(
.tck(virt_tck),
.tdi(virt_tdi),
|
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.