message
stringlengths
6
474
diff
stringlengths
8
5.22k
strtoul: endptr changed to the first invalid character
@@ -38,9 +38,6 @@ unsigned int lib_strtoul(char *nptr, char **endptr, int base) if (base == 16 && nptr[0] == '0' && nptr[1] == 'x') nptr += 2; - if (*endptr != NULL) - *endptr = nptr; - while (strtoul_isalnum(*nptr)) { if ((t = *nptr - '0') > 9) t = (*nptr | 0x20) - 'a' + 10; @@ -50,12 +47,12 @@ unsigned int lib_strtou...
Structure size alligned by compiler.
* @brief This class is used as a structure to configure wear levelling module * */ -#ifndef wl_config_t_size -#define wl_config_t_size (int)((48 - (2*sizeof(size_t) + 7*sizeof(uint32_t)) + sizeof(uint32_t) - 1)/sizeof(uint32_t)) -#endif // wl_config_t_size -typedef struct WL_Config_s { + +#if defined(_MSC_VER) +#define...
remove localization on links
@@ -163,7 +163,7 @@ typedef struct * @brief Initializes the Telemetry or C2D properties. * * @note The properties must adhere to the character restrictions listed in the below link. - * https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-messages-construct + * https://docs.microsoft.com/azure/iot-hub/iot-hu...
Do not forward SDL_DROPFILE event The event is handled by scrcpy.c, it is not necessary to send it to screen or input_manager.
@@ -167,7 +167,7 @@ handle_event(SDL_Event *event, const struct scrcpy_options *options) { action = ACTION_PUSH_FILE; } file_handler_request(&file_handler, action, file); - break; + goto end; } }
remove unsed prototype in "include/h2o/websocket.h"
@@ -32,7 +32,7 @@ extern "C" { typedef struct st_h2o_websocket_conn_t h2o_websocket_conn_t; -/* arg is NULL if the connection has been closed */ +/* if arg is NULL, the user should close connection by calling h2o_websocket_close() */ typedef void (*h2o_websocket_msg_callback)(h2o_websocket_conn_t *conn, const struct ws...
tests: Revert "tests: add sending SIGQUIT to vpp quit sequence" This reverts commit That commit makes *every* test to send SIGQUIT to VPP when it is done, thereby triggering the coredump if there was none. It is most surely not what we want. Type: test
@@ -474,13 +474,12 @@ class VppTestCase(unittest.TestCase): cls.logger.critical("Couldn't stat : {}".format(cls.stats_sock)) @classmethod - def wait_for_coredump(cls, corefile, wait_time=60): - cls.vpp.send_signal(signal.SIGQUIT) + def wait_for_coredump(cls): + corefile = cls.tempdir + "/core" if os.path.isfile(corefil...
2. Remove our from the gall wire
%+ turn moz |= a/move ?. ?=($pass -.q.a) a - [p.a %pass [(scot %p our) p.q.a] q.q.a] + [p.a %pass p.q.a q.q.a] :: ++ mo-conf :: configure |= {dap/dude lum/culm} |= {tea/wire hen/duct hin/(hypo sign-arvo)} ^+ [*(list move) ..^$] ~| [%gall-take tea] - ?> ?=({@ ?($sys $use) *} tea) + ?> ?=([?($sys $use) *] tea) =+ mow=(mo...
Update orca about logo.
@@ -1709,8 +1709,8 @@ void push_about_msg(void) { // clang-format off static char const* logo[] = { "lqqqk|lqqqk|lqqqk|lqqqk", - "x x|xqqqu|x |lqqqu", - "mqqqj|m j|mqqqj|mqqqj", + "x x|x j|x |lqqqu", + "mqqqj|m |mqqqj|m j", }; static char const* footer = "Live Programming Environment";
fix: discord::guild::create_channel() now checks for params->topic size
@@ -203,6 +203,10 @@ void run(client *client, const uint64_t guild_id, params *params, channel::dati D_PUTS("Missing channel name (params.name)"); return; } + if (!orka_str_below_threshold(params->topic, 1024)) { + D_PUTS("Missing channel name (params.name)"); + return; + } #if 0 void *A[10] = {0}; // pointer availabil...
vrapi: fix getSkeleton joint poses;
@@ -396,6 +396,20 @@ static bool vrapi_getSkeleton(Device device, float* poses) { memcpy(poses + 0, &handPose->RootPose.Position.x, 3 * sizeof(float)); memcpy(poses + 4, &handPose->RootPose.Orientation.x, 4 * sizeof(float)); + float rotation[4]; + if (index == 0) { + float q[4]; + quat_fromAngleAxis(rotation, (float) M...
Add support for CDATA (issue
@@ -90,8 +90,7 @@ static const StringMappingType TOKEN_MAP[] = { { "Width", TOK_WIDTH }, { "WindowStyle", TOK_WINDOWSTYLE } }; -static const unsigned int TOKEN_MAP_COUNT - = sizeof(TOKEN_MAP) / sizeof(TOKEN_MAP[0]); +static const unsigned int TOKEN_MAP_COUNT = ARRAY_LENGTH(TOKEN_MAP); static TokenNode *head; @@ -124,14...
Clean up Mesh IBO properly;
@@ -89,12 +89,12 @@ Mesh* lovrMeshCreate(int count, MeshFormat* format, MeshDrawMode drawMode, MeshU mesh->lastShader = NULL; glGenBuffers(1, &mesh->vbo); + glGenBuffers(1, &mesh->ibo); glBindBuffer(GL_ARRAY_BUFFER, mesh->vbo); glBufferData(GL_ARRAY_BUFFER, mesh->count * mesh->stride, NULL, mesh->usage); if (GLAD_GL_VE...
Fixing Boost library link error when building with --enable-debug flag is specified on OSX
@@ -439,7 +439,7 @@ case $host in esac fi - AX_CHECK_LINK_FLAG([[-Wl,-headerpad_max_install_names]], [LDFLAGS="$LDFLAGS -Wl,-headerpad_max_install_names"]) + AX_CHECK_LINK_FLAG([[-lboost_system -Wl,-headerpad_max_install_names]], [LDFLAGS="$LDFLAGS -lboost_system -Wl,-headerpad_max_install_names"]) CPPFLAGS="$CPPFLAGS ...
Readme for 1.7
@@ -25,7 +25,7 @@ A security oriented, feedback-driven, evolutionary, easy-to-use fuzzer with inte ## Code - * Latest stable version: [1.6](https://github.com/google/honggfuzz/releases) + * Latest stable version: [1.7](https://github.com/google/honggfuzz/releases) * [Changelog](https://github.com/google/honggfuzz/blob/...
docs: remove tip regarding 1.3 warewulf in upgrade discussion
@@ -39,20 +39,6 @@ rolling updates are pre-configured. [sms](*\#*) (*\upgrade*) "ohpc-base" \end{lstlisting} -\iftoggleverb{isWarewulf} -\begin{center} -\begin{tcolorbox}[] -\small -The version of \Warewulf{} included in \OHPC{} v1.3.6 added a new -architecture-specific package containing iPXE files. Upgraders will nee...
newt: free completed message buffer
@@ -181,6 +181,8 @@ _newt_poke_mess(u3_moat* mot_u) u3_noun mat = u3i_bytes((c3_w)len_d, buf_y); mot_u->pok_f(mot_u->vod_p, mat); } + + c3_free(buf_y); } /* u3_newt_decode(): decode a (partial) length-prefixed byte buffer
vabtool: bump version, add pr_status to help
## ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE ## POSSIBILITY OF SUCH DAMAGE. -declare -r VERSION='1.0.1' +declare -r VERSION='1.0.2' oops() { printf "fatal: %s\n" "$*" @@ -195,7 +195,7 @@ call_rsu() { } help() { - printf "Usage: vabtool {sr_key_provision, sr_status, pr_key_provision} ......
delete all characters from char to EOL more like GNU readline or emacs - can delete entire line with ctrl-A ctrl-K
@@ -1076,7 +1076,7 @@ static int cle_editloop(FAR struct cle_s *priv) case KEY_DELEOL: /* Delete to the end of the line */ { - priv->nchars = (priv->nchars > 0 ? priv->curpos + 1 : 0); + priv->nchars = (priv->nchars > 0 ? priv->curpos : 0); } break;
hw/mcu/nordic: use correct struct type for spi2 and spi3 bus. bus_spi_hal_dev_create needs struct `bus_spi_hal_dev` when using bus driver.
@@ -203,7 +203,7 @@ static const struct bus_spi_dev_cfg spi2_cfg = { .pin_mosi = MYNEWT_VAL(SPI_2_MASTER_PIN_MOSI), .pin_miso = MYNEWT_VAL(SPI_2_MASTER_PIN_MISO), }; -static struct bus_spi_dev spi2_bus; +static struct bus_spi_hal_dev spi2_bus; #else static const struct nrf52_hal_spi_cfg os_bsp_spi2m_cfg = { .sck_pin = ...
libvfs: nfs client: update write #define parameters to work with new network stack
//#define NONBLOCKING_NFS_READ 1 #define MAX_NFS_READ_BYTES 1330 /*14000*//*workaround for breakage in lwip*/ -#define MAX_NFS_WRITE_BYTES 1330 /* workaround for breakage in lwip */ -#define MAX_NFS_WRITE_CHUNKS 1 /* workaround for breakage in lwip */ +/* SG,2017-10-04: lowered from 1330, now works with e1000_net_socke...
Lock SCons to version 3.0.1
C:/Python27/python.exe -m pip install --upgrade pip distribute setuptools wheel -C:/Python27/python.exe -m pip install scons +C:/Python27/python.exe -m pip install "scons==3.0.1" cd build/scons scons develop_all -s dist %SCONSMODE% %SCONSOPTS% MODE=RELEASE cd ../..
Update doc/wuffs-the-language.md
@@ -79,8 +79,12 @@ A basic type further constrained to a subset of its natural ..= 99]` then it is an unsigned 8-bit integer whose value must be less than `100`. Without the refinement, `x` could be as high as `255`. -`base.u8[0 ..= 99]` and `base.u32[0 ..= 99]` are two different types. They can -have different run-tim...
Add symmetric ciphers and block modes Update the psa/crypto_config.h with the newly defined PSA_WANT_ definitions for symmetric ciphers and block modes.
#ifndef PSA_CRYPTO_CONFIG_H #define PSA_CRYPTO_CONFIG_H +#define PSA_WANT_ALG_CBC 1 +#define PSA_WANT_ALG_CBC_NO_PADDING 1 +#define PSA_WANT_ALG_CBC_PKCS7 1 +#define PSA_WANT_ALG_CFB 1 #define PSA_WANT_ALG_DETERMINISTIC_ECDSA 1 +#define PSA_WANT_ALG_ECB_NO_PADDING 1 #define PSA_WANT_ALG_ECDH 1 #define PSA_WANT_ALG_ECDS...
Fixed OrderedTileDataSource handling of 'replace with parent' flag
@@ -46,20 +46,21 @@ namespace carto { } std::shared_ptr<TileData> OrderedTileDataSource::loadTile(const MapTile& mapTile) { + std::shared_ptr<TileData> result1, result2; int zoom = mapTile.getZoom(); if (zoom <= _dataSource1->getMaxZoom() && zoom >= _dataSource1->getMinZoom()) { - std::shared_ptr<TileData> result = _da...
remove preference for deferring frozen asset load since it always gets deferred. (this does not need backporting cause the preference was never exposed in 17.5)
@@ -11,10 +11,6 @@ houdiniEnginePreferences_refresh() -value1 `optionVar -query "houdiniEngineDeleteAfterBake"` delAfterBakeCheck; - checkBoxGrp -e - -value1 `optionVar -query "houdiniEngineDeferAssetLoad"` - deferAssetLoadCheck; - checkBoxGrp -e -value1 `optionVar -query "houdiniEngineUnsetLLP"` unsetLLPCheck; @@ -75,...
fix attribute validations for eBPF maps
@@ -1708,10 +1708,10 @@ int h2o_socket_ebpf_setup(void) map_attr.key_size, m.key_size); goto Error; } - if (m.key_size != map_attr.key_size) { + if (m.value_size != map_attr.value_size) { h2o_error_printf(H2O_EBPF_RETURN_MAP_PATH " has an unexpected map value size: expected %" PRIu32 " but got %" PRIu32 "\n", - map_att...
u3: updates u3i_slab implementation to normalize zero-length allocations to 1
@@ -119,7 +119,7 @@ u3i_slab_bare(u3i_slab* sab_u, c3_g met_g, c3_d len_d) // if we only need one word, use the static storage in [sab_u] // - if ( 1 == wor_w ) { + if ( (0 == wor_w) || (1 == wor_w) ) { sab_u->_._vat_u = 0; sab_u->buf_w = &sab_u->_._sat_w; sab_u->len_w = 1;
notifications: fix refresh bug Fixes urbit/landscape#546
@@ -63,7 +63,7 @@ const useHarkState = createState<HarkState>('Hark', { graph: {}, group: {} }, -}, ['notifications', 'archivedNotifications', 'unreads']); +}, ['notifications', 'archivedNotifications', 'unreads', 'notificationsCount']); export default useHarkState;
[DevTool] 0.2.3
Pod::Spec.new do |s| s.name = 'MLNDevTool' - s.version = '0.2.2' + s.version = '0.2.3' s.summary = 'Debug Tool of MLN.' # This description is used to generate tags and improve search results.
remove disabled timer from pqueue
@@ -60,19 +60,22 @@ timer register_periodic_timer(timestamp interval, thunk n) */ timestamp timer_check() { - timestamp here; + timestamp here = 0; timer current = 0; while ((current = pqueue_peek(timers)) && (here = now(), current->w < here)) { - if (!current->disable) { pqueue_pop(timers); + if(!current->disable) { a...
gooey: Add gpio EC_CBI_WP This patch assign gpio EC_CBI_WP to GPH5. BRANCH=keeby TEST=make buildall -j
@@ -99,7 +99,7 @@ GPIO_INT(PEN_DET_ODL, PIN(J, 1), GPIO_INT_BOTH | GPIO_PULL_UP, pen_detect_inter GPIO(EN_PP5000_PEN, PIN(B, 5), GPIO_OUT_LOW) GPIO(PEN_DET_PCH, PIN(F, 1), GPIO_OUT_LOW) GPIO(EN_KB_BL, PIN(J, 3), GPIO_OUT_LOW) /* Currently unused */ -UNIMPLEMENTED(EC_CBI_WP) +GPIO(EC_CBI_WP, PIN(H, 5), GPIO_OUT_LOW) /* ...
board/host/fan.c: Format with clang-format BRANCH=none TEST=none
@@ -22,7 +22,10 @@ const struct fan_rpm fan_rpm_0 = { }; const struct fan_t fans[CONFIG_FANS] = { - { .conf = &fan_conf_0, .rpm = &fan_rpm_0, }, + { + .conf = &fan_conf_0, + .rpm = &fan_rpm_0, + }, }; static int mock_enabled;
Hmm, byte vertex attributes can have more than 1 component;
@@ -51,7 +51,6 @@ bool luax_checkvertexformat(lua_State* L, int index, VertexFormat* format) { const char* name = lua_tostring(L, -3); AttributeType type = luaL_checkoption(L, -2, NULL, AttributeTypes); int count = lua_tointeger(L, -1); - lovrAssert(type != ATTR_BYTE || count == 1, "Vertex attribute with type 'byte' mu...
reduce logging for tensorflow
#include <stdio.h> #include <fcntl.h> #include <unistd.h> +#include <stdlib.h> #include "misc/misc.h" #include "misc/debug.h" @@ -436,6 +437,10 @@ const struct tf_shared_graph_s* tf_shared_graph_create(const char* path, const c { int plen = strlen(path) + 20; + //reduce logging level of TensorFlow + if (debug_level <= ...
Fix error in example. Fixes
@@ -92,7 +92,7 @@ buffer size to hold the value. #include <openssl/evp.h> - char *curve_name[64]; + char curve_name[64]; unsigned char pub[256]; BIGNUM *bn_priv = NULL; @@ -113,7 +113,6 @@ buffer size to hold the value. /* Error */ } - BN_clear_free(bn_priv); =head1 SEE ALSO
Fix official onebranch builds having incorrect yaml
@@ -107,10 +107,3 @@ extends: config: Debug tls: openssl platform: UWP - - - stage: package - displayName: Package - dependsOn: - - build - jobs: - - template: .azure/obtemplates/build-distribution.yml@self
Silence array-bounds warning. The macro IS_FILL_WORD was generating a false positive array-bounds warning. Convting the macro into an inline function removes the warning without altering the essence of the code. The macro was always used within a conditional so it is unlikely to suffer performance penalties.
@@ -317,19 +317,6 @@ typedef struct BMTidBuildBuf #define WORDNO_GET_HEADER_BIT(cw_no) \ ((BM_HRL_WORD)1 << (BM_HRL_WORD_SIZE - 1 - ((cw_no) % BM_HRL_WORD_SIZE))) -/* - * To see if the content word at n is a compressed word or not we must look - * look in the header words h_words. Each bit in the header words correspon...
component/bt: fix the issue where no gatt server request callback warning caused while acting as a GATTC
@@ -65,6 +65,7 @@ static void bta_gattc_pop_command_to_send(tBTA_GATTC_CLCB *p_clcb); static void bta_gattc_deregister_cmpl(tBTA_GATTC_RCB *p_clreg); static void bta_gattc_enc_cmpl_cback(tGATT_IF gattc_if, BD_ADDR bda); static void bta_gattc_cong_cback (UINT16 conn_id, BOOLEAN congested); +static void bta_gattc_req_cba...
Add initial support for ARMV9 Cortex 510/710/X1/X2
@@ -161,6 +161,30 @@ if (${CORE} STREQUAL ARMV8SVE) endif () endif () +if (${CORE} STREQUAL CORTEXA510) + if (NOT DYNAMIC_ARCH) + set (CCOMMON_OPT "${CCOMMON_OPT} -march=armv8-a+sve") + endif () +endif () + +if (${CORE} STREQUAL CORTEXA710) + if (NOT DYNAMIC_ARCH) + set (CCOMMON_OPT "${CCOMMON_OPT} -march=armv8-a+sve")...
esp8266/modules/ntptime.py: Always close socket, and set day-of-week. Fixes issue
@@ -17,9 +17,11 @@ def time(): NTP_QUERY[0] = 0x1b addr = socket.getaddrinfo(host, 123)[0][-1] s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) + try: s.settimeout(1) res = s.sendto(NTP_QUERY, addr) msg = s.recv(48) + finally: s.close() val = struct.unpack("!I", msg[40:44])[0] return val - NTP_DELTA @@ -31,5 +33,4 ...
timing_load_creds requires POSIX1.2001 due to rusage Fixes
# include <openssl/err.h> # include <openssl/bio.h> # include "internal/e_os.h" +# if defined(_POSIX_VERSION) && _POSIX_VERSION >= 200112L # ifndef timersub /* struct timeval * subtraction; a must be greater than or equal to b */ @@ -91,10 +92,11 @@ static void usage(void) exit(EXIT_FAILURE); } # endif +#endif int main...
add OPENSSL_INCLUDE_DIR as include directory for h2o-fuzzer-http3
@@ -940,6 +940,7 @@ IF (BUILD_FUZZER) TARGET_LINK_LIBRARIES(h2o-fuzzer-http2 libh2o-evloop ${EXTRA_LIBS} ${LIB_FUZZER}) # h3 fuzzer does not use libh2o so it can replace quicly with quicly_mock TARGET_LINK_LIBRARIES(h2o-fuzzer-http3 ${EXTRA_LIBS} ${LIB_FUZZER} ${OPENSSL_LIBRARIES} ${CMAKE_DL_LIBS}) + TARGET_INCLUDE_DIR...
Don't add one to the received head pointer when updating submission queue head
@@ -200,7 +200,7 @@ module nvme_host_slave # // Update cq and sq heads based on recieved data if (rx_write_valid && rx_waddr < DATA_CQ_ADDR) begin // Update current submission queue head with received head - sq_head[rx_q_index] <= rx_wdata[64 +: SQ_BITS] + 1; + sq_head[rx_q_index] <= rx_wdata[64 +: SQ_BITS]; if (rx_wda...
zero initial values
@@ -1644,6 +1644,7 @@ if(memcmp(wpak->nonce, &zeroed32, 32) == 0) return; } zeiger = handshakelist +HANDSHAKELIST_MAX -1; +memset(zeiger, 0, HANDSHAKELIST_SIZE); zeiger->timestamp = timestamp; memcpy(zeiger->client, macfrx->addr2, 6); memcpy(zeiger->ap, macfrx->addr1, 6); @@ -1708,6 +1709,7 @@ static uint64_t rc; stati...
decision: add remark that kdbSet also behaves the same in More Keys problem
@@ -10,13 +10,23 @@ This was found confusing several times. Even if calling `kdbGet` with a parent key below a mountpoint, `kdbGet` will nevertheless return all keys of the mountpoint. Pseudo code example, assuming there is a mountpoint at `/mountpoint` and a key `/mountpoint/other`: -``` +```c kdbGet (kdb, ks, keyNew(...
fix work on rhosimulator/windows
@@ -86,7 +86,6 @@ def log_command(cmd) end def convert_to_relative_path(path, app_path) - puts "convert_to_relative_path #{path} #{app_path}" if path.include?("./") relative_path = "/" + path[path.index("./") + 2, path.length] elsif path.include?("lib") @@ -98,7 +97,7 @@ def convert_to_relative_path(path, app_path) els...
Fix issues loading plugins when main executable renamed
@@ -338,6 +338,7 @@ BOOLEAN PhLoadPlugin( _In_ PPH_STRING FileName ) { + NTSTATUS status; PPH_STRING fileName; PPH_STRING errorMessage; PPHP_PLUGIN_LOAD_ERROR loadError; @@ -347,13 +348,15 @@ BOOLEAN PhLoadPlugin( if (!fileName) PhSetReference(&fileName, FileName); - if (LoadLibrary(fileName->Buffer)) + status = PhLoad...
docs: define multi-tables for meta-packages on x86
@@ -16,13 +16,21 @@ list of the available meta-packages and a brief description is presented in Table~\ref{table:groups}. \vspace*{1.25cm} -\begin{table}[h] +\begin{table}[h!] \caption{\bf Available \OHPC{} Meta-packages} \vspace*{\captionSpace{}} \label{table:groups} \input manifest/patterns \end{table} -\newpage +% m...
py/objnamedtuple: make_new: Support separate __new__ vs __init__ phases. Similar to tuple, __init__ is null.
@@ -92,6 +92,9 @@ STATIC void namedtuple_attr(mp_obj_t self_in, qstr attr, mp_obj_t *dest) { } STATIC mp_obj_t namedtuple_make_new(const mp_obj_type_t *type_in, size_t n_args, size_t n_kw, const mp_obj_t *args) { + MP_MAKE_NEW_GET_ONLY_FLAGS(); + (void)only_new; + const mp_obj_namedtuple_type_t *type = (const mp_obj_na...
Fieldset: Fix memory leaks
@@ -142,6 +142,7 @@ static void grib_fieldset_delete_columns(grib_fieldset* set) case GRIB_TYPE_STRING: for (j = 0; j < set->columns[i].size; j++) grib_context_free(c, set->columns[i].string_values[j]); + grib_context_free(c, set->columns[i].string_values); break; default: grib_context_log(c, GRIB_LOG_ERROR,
Make header private
FCE7D62F1EE9F6610081EEEF /* TSKTrustKitConfig.m in Sources */ = {isa = PBXBuildFile; fileRef = FCE7D62C1EE9F6610081EEEF /* TSKTrustKitConfig.m */; }; FCE7D6301EE9F6610081EEEF /* TSKTrustKitConfig.m in Sources */ = {isa = PBXBuildFile; fileRef = FCE7D62C1EE9F6610081EEEF /* TSKTrustKitConfig.m */; }; FCE7D6311EE9F66A0081...
OcDevicePathLib: Fix Device Path comparison termination
@@ -602,7 +602,7 @@ InternalDevicePathCmpWorker ( // ASSERT (NodeSubType == END_ENTIRE_DEVICE_PATH_SUBTYPE); return (CheckChild - || (DevicePathType (ParentPathPtr.DevPath) == END_ENTIRE_DEVICE_PATH_SUBTYPE)); + || (DevicePathType (ParentPathPtr.DevPath) == END_DEVICE_PATH_TYPE)); } if ((DevicePathType (ParentPathPtr.D...
At AF_PACKET socket create, do intf bind before rx ring cfg to avoid receiving pkts from other interfaces
@@ -144,6 +144,18 @@ create_packet_v2_sock (int host_if_index, tpacket_req_t * rx_req, goto error; } + /* bind before rx ring is cfged so we don't receive packets from other interfaces */ + memset (&sll, 0, sizeof (sll)); + sll.sll_family = PF_PACKET; + sll.sll_protocol = htons (ETH_P_ALL); + sll.sll_ifindex = host_if_...
the loadAndAddHistory proc now copies the assets AE tab in a separate window.
@@ -410,7 +410,7 @@ houdiniEngine_connectHistory(string $inputAttr, string $objects[], string $compo return 1; } -global proc +global proc string houdiniEngine_loadAndAddHistory(string $assetFile, string $assetName) { @@ -422,7 +422,12 @@ houdiniEngine_loadAndAddHistory(string $assetFile, string $assetName) if(!`exists...
kernel/binary_manager_load.c : Print loaded binary path
@@ -118,7 +118,11 @@ static int binary_manager_load_binary(int bin_idx, char *path, load_attr_t *load while (retry_count < BINMGR_LOADING_TRYCNT) { ret = load_binary(bin_idx, path, load_attr); if (ret >= 0) { - bmvdbg("%s Load '%s' success! pid = %d\n", BINARY_COMP_TYPE, load_attr->bin_name, ret); + if (bin_idx == 0) {...
disable clang header units tests with -stdlib=libc++
@@ -29,9 +29,9 @@ function main(t) os.exec("xmake clean -a") os.exec("xmake f --toolchain=clang -c") _build() - os.exec("xmake clean -a") - os.exec("xmake f --toolchain=clang --cxxflags=\"-stdlib=libc++\" -c") - _build() + -- os.exec("xmake clean -a") there is currently a bug on llvm git that prevent to build STL heade...
driver: Fix memory leak in rtc_isr_deregister() Closes
@@ -1983,6 +1983,7 @@ esp_err_t rtc_isr_deregister(intr_handler_t handler, void* handler_arg) SLIST_REMOVE_AFTER(prev, next); } found = true; + free(it); break; } prev = it;
docs - updated the gpdb-doc readme file
# Greenplum Database End-User Documentation -The latest check-ins to this repo are automatically built and published to [http://docs-greenplum-db-staging.cfapps.io](http://docs-greenplum-db-staging.cfapps.io). +The latest Greenplum Database documentation is available at [https://docs.greenplum.org](https://docs.greenpl...
uip.h: clarify comment
#define UIP_IP_PAYLOAD(ext) ((unsigned char *)UIP_IP_BUF_CHAR + UIP_IPH_LEN + (ext)) /** - * Direct access to ICMP, UDP, and TCP headers and payload, with implicit ext header offset + * Direct access to ICMP, UDP, and TCP headers and payload, with implicit ext header offset (global uip_ext_len) */ #define UIP_ICMP_BUF ...
Fix crash when async fs_scandir is called and the loop isn't run before exit
@@ -391,6 +391,11 @@ static int push_fs_result(lua_State* L, uv_fs_t* req) { static void luv_fs_cb(uv_fs_t* req) { luv_req_t* data = (luv_req_t*)req->data; + // This can happen if luv_fs_cb is called during loop gc. For example, this can happen + // when the async version of fs_scandir is called but the loop is never r...
README: state function return types more precisely
@@ -282,7 +282,7 @@ Parameters: Returns: -- The modified filepath without extension. +- The modified filepath without extension (string). This function wraps [System.FilePath.dropExtension]. @@ -304,7 +304,8 @@ Parameters: Returns: -- `true` if `filepath` has an extension. +- `true` iff `filepath` has an extension, `fa...
change the second animation range
@@ -96,7 +96,7 @@ lv_obj_t * lv_preload_create(lv_obj_t * par, const lv_obj_t * copy) lv_anim_t b; b.var = new_preload; b.start = ext->arc_length; - b.end = 360; + b.end = 360 - ext->arc_length; b.fp = (lv_anim_fp_t)lv_preload_set_arc_length; b.path = lv_anim_path_ease_in_out; b.end_cb = NULL; @@ -105,7 +105,7 @@ lv_ob...
u3: removes .fab from |ut hooks
@@ -548,8 +548,7 @@ static u3j_hood _141_pen__ut_ho[] = { { "ar", 12282 }, { "fan", 28, c3n }, { "rib", 58, c3n }, - { "vet", 118, c3n }, - { "fab", 119, c3n }, + { "vet", 59, c3n }, { "blow", 6015 }, { "burp", 342 },
adding libc posix_fadvise64 unsure about off64_t it's said to be always 64 bit, but also said to be off_t on a 32bit system which is only 32bit.
@@ -1223,7 +1223,7 @@ GOW(poll, iFpui) // poll have an array of struct as 1st argument GO(__poll, iFpui) GO(popen, pFpp) GO(posix_fadvise, iFiuui) -// posix_fadvise64 +GO(posix_fadvise64, iFiuui) // posix_fallocate // posix_fallocate64 // posix_madvise
Fix nrf5x sector count
@@ -38,7 +38,7 @@ target_cfg_t target_device = { // Default is nRF51 target_cfg_t target_device_nrf52 = { .sector_size = 4096, - .sector_cnt = (KB(512) / 1024), + .sector_cnt = (KB(512) / 4096), .flash_start = 0, .flash_end = KB(512), .ram_start = 0x20000000,
Fix the false positive of `SECP_64BIT_ASM_CHECK`
dnl escape "$0x" below using the m4 quadrigaph @S|@, and escape it again with a \ for the shell. AC_DEFUN([SECP_64BIT_ASM_CHECK],[ AC_MSG_CHECKING(for x86_64 assembly availability) -AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ +AC_LINK_IFELSE([AC_LANG_PROGRAM([[ #include <stdint.h>]],[[ uint64_t a = 11, tmp; __asm__ __volatil...
Add fix for cmake control of CMAKE_BUILD_TYPE only if mbedtls is the root project
@@ -112,9 +112,12 @@ option: \n\ endif() endif() +# If this is the root project add longer list of available CMAKE_BUILD_TYPE values +if(CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR) set(CMAKE_BUILD_TYPE ${CMAKE_BUILD_TYPE} CACHE STRING "Choose the type of build: None Debug Release Coverage ASan ASanDbg MemSan Me...
Fix extra retain of CTTypesetter Fixes
*/ CTFramesetterRef CTFramesetterCreateWithAttributedString(CFAttributedStringRef string) { _CTFramesetter* ret = [_CTFramesetter alloc]; - ret->_typesetter = static_cast<_CTTypesetter*>(CTTypesetterCreateWithAttributedString(string)); + ret->_typesetter.attach(static_cast<_CTTypesetter*>(CTTypesetterCreateWithAttribut...
sse2: fix portable _mm_cvtpd_epi32 implementation The old one didn't initialize the upper half of the result. Need to add something to CI that will more reliably fail on this type of problem; UBSan should catch it, but we would need a build with __builtin_convertvector disabled.
@@ -1598,9 +1598,10 @@ simde_mm_cvtpd_epi32 (simde__m128d a) { r.m64[1] = simde_mm_setzero_si64(); #else SIMDE__VECTORIZE - for (size_t i = 0 ; i < (sizeof(r.f64) / sizeof(r.f64[0])) ; i++) { + for (size_t i = 0 ; i < (sizeof(a.f64) / sizeof(a.f64[0])) ; i++) { r.i32[i] = (int32_t) a.f64[i]; } + r.m64[1] = simde_mm_set...
component/bt: add DRAM_ATTR attribute to global variables(bss segment) in bt.c which can be accessed in ISR
@@ -335,28 +335,28 @@ SOC_RESERVE_MEMORY_REGION(SOC_MEM_BT_BSS_START, SOC_MEM_BT_BSS_END, SOC_RESERVE_MEMORY_REGION(SOC_MEM_BT_MISC_START, SOC_MEM_BT_MISC_END, rom_bt_misc); SOC_RESERVE_MEMORY_REGION(SOC_MEM_BT_DATA_START, SOC_MEM_BT_DATA_END, rom_bt_data); -static struct osi_funcs_t *osi_funcs_p; +static DRAM_ATTR str...
add missing newlines to msg_err calls src/unix/mmap.c
@@ -176,7 +176,7 @@ sysreturn mremap(void *old_address, u64 old_size, u64 new_size, int flags, void u64 maplen = pad(new_size, vh->pagesize); u64 vnew = allocate_u64(vh, maplen); if (vnew == (u64)INVALID_ADDRESS) { - msg_err("failed to allocate virtual memory, size %ld", maplen); + msg_err("failed to allocate virtual m...
Update README.md Add `frame_timing` and how to hide it.
@@ -36,7 +36,7 @@ Or alternatively, add `MANGOHUD=1` to your shell profile. ## MANGOHUD_CONFIG parameters -You can customize the hud by using the MANGOHUD_CONFIG environment variable while separating different options with a comma. +You can customize the hud by using the MANGOHUD_CONFIG environment variable while separ...
Fix sphere and cylinder;
@@ -556,9 +556,11 @@ void lovrGraphicsDraw(DrawCommand* draw) { if (draw->index.count) { // TODO conditionally use BaseVertex when it is supported to avoid this + if (draw->index.data) { for (uint32_t i = 0; i < draw->index.count; i++) { draw->index.data[i] += state.vertexCursor; } + } if (draw->index.data) { uint16_t*...
Require at least 1.8.4
@@ -29,5 +29,5 @@ Gem::Specification.new do |s| Dir['gumbo-parser/visualc/include/*.h'] s.required_ruby_version = ">= 2.1" - s.add_runtime_dependency 'nokogiri' + s.add_runtime_dependency 'nokogiri', '~> 1.8', '>= 1.8.4' end
fix(docs): Document `ignore-modifiers` and `quick-release` for sticky keys
@@ -7,8 +7,6 @@ sidebar_label: Sticky Key A sticky key stays pressed until another key is pressed. It is often used for 'sticky shift'. By using a sticky shift, you don't have to hold the shift key to write a capital. -By default, sticky keys stay pressed for a second if you don't press any other key. You can configure...
Fix UV issue when outputting multiple UV layers Only happens when outputting mutliple UV layers, and one of them contains "map1".
@@ -1681,6 +1681,11 @@ OutputGeometryPart::computeMesh( } } + bool hasDefaultUVSet = std::find( + arrayBegin(uvSetNames), + arrayEnd(uvSetNames), + "map1") != arrayEnd(uvSetNames); + int layerIndex = 0; for(;;) { @@ -1848,7 +1853,7 @@ OutputGeometryPart::computeMesh( // Copy the current UVs to "map1", so that the viewp...
sdl/hints: update SDL_HINT_JOYSTICK_HIDAPI_CORRELATE_XINPUT to be compatible with SDL2 2.0.16
@@ -4,6 +4,10 @@ package sdl #include "sdl_wrapper.h" #include "hints.h" +#if !(SDL_VERSION_ATLEAST(2,0,16)) +#define SDL_HINT_JOYSTICK_RAWINPUT_CORRELATE_XINPUT "" +#endif + #if !(SDL_VERSION_ATLEAST(2,0,14)) #define SDL_HINT_JOYSTICK_HIDAPI_PS5 "" #define SDL_HINT_MOUSE_RELATIVE_SCALING "" @@ -96,6 +100,16 @@ package...
cd to rhodes dir after apps generation
@@ -27,6 +27,7 @@ script: - rhodes app vanilla_rhodes_app - rhodes jsapp vanilla_rhodes_jsapp - rhodes nodejsapp vanilla_rhodes_nodejsapp +- cd $TRAVIS_BUILD_DIR - git clone $(.ci/app_repo.rb) $HOME/$RHO_APP - cd $HOME/$RHO_APP/$(.ci/app_build_root.rb)
perf(non-null judgment): add non-null judgment of "layoutCfg.groupCfg" in BoatHlfabricDiscoverySubmit()
@@ -934,6 +934,10 @@ BOAT_RESULT BoatHlfabricDiscoverySubmit(BoatHlfabricTx *tx_ptr, const BoatHlfabr tx_ptr->wallet_ptr->network_info.layoutCfg[i].endorserGroupNum = discoverResult.cc_res.layouts[i].num; tx_ptr->wallet_ptr->network_info.layoutCfg[i].groupCfg = BoatMalloc(discoverResult.cc_res.layouts[i].num * sizeof(B...
Make sure `now` is set before initializing the timerwheel
@@ -443,11 +443,12 @@ h2o_evloop_t *create_evloop(size_t sz) memset(loop, 0, sz); loop->_statechanged.tail_ref = &loop->_statechanged.head; h2o_linklist_init_anchor(&loop->_timeouts); - h2o_timerwheel_init(&loop->_timerwheel); - h2o_timerwheel_run(&loop->_timerwheel, loop->_now); update_now(loop); + h2o_timerwheel_init...
nimble/transport: Fix socket transport build on native tgt
@@ -81,6 +81,7 @@ struct sockaddr_hci { #include "nimble/ble.h" #include "nimble/nimble_opt.h" #include "nimble/hci_common.h" +#include "nimble/nimble_npl.h" #include "nimble/ble_hci_trans.h" #include "socket/ble_hci_socket.h" @@ -767,8 +768,11 @@ ble_hci_trans_reset(void) void ble_hci_sock_ack_handler(void *arg) { + s...
acrn-config: fix issue of acrn build failed on industry scenario when ivshmem configured add extern acrn_vm_pci_dev_config variables in vm_configuration.c when ivshmem configured on scenarios with ivshmem configured. Acked-by: Victor Sun
@@ -404,7 +404,7 @@ def gen_post_launch_vm(vm_type, vm_i, scenario_items, config): print("\t},", file=config) -def pre_launch_definition(vm_info, config): +def declare_pci_devs(vm_info, config): for vm_i,vm_type in common.VM_TYPES.items(): if scenario_cfg_lib.VM_DB[vm_type]['load_type'] not in ["PRE_LAUNCHED_VM", "POST...
Fix lovrInstanceID on Android;
@@ -47,6 +47,7 @@ const char* lovrShaderVertexPrefix = "" "#if defined MULTIVIEW \n" "layout(num_views = 2) in; \n" "#define lovrViewID (int(gl_ViewID_OVR)) \n" +"#define lovrInstanceID gl_InstanceID \n" "#elif defined INSTANCED_STEREO \n" "#define lovrViewID gl_ViewportIndex \n" "#define lovrInstanceID (gl_InstanceID ...
bug fix flash erase function F4
@@ -40,7 +40,7 @@ void fmc_lock() { int fmc_erase( void ) { #ifdef F405 - int test = FLASH_EraseSector( FLASH_ADDR, VoltageRange_3); + int test = FLASH_EraseSector( FLASH_Sector_1, VoltageRange_3); #endif #ifdef F0
chat-input: fixed sizing issues
@@ -268,8 +268,8 @@ export class ChatInput extends Component { }}> <img style={{ filter: state.inCodeMode && 'invert(100%)', - height: '100%', - width: '100%' + height: '14px', + width: '14px', }} onClick={this.toggleCode} src="/~chat/img/CodeEval.png"
Refactor IOTBUS_PWM macros used in iotbus_pwm.c 1. Remove unused macro IOTBUS_USEC_2_SEC 2. Replace hard coded value "1000000" with macro IOTBUS_PWM_MAX_PERIOD 3. Replace hard coded value "65536" with new macro IOTBUS_PWM_MAX_RESOLUTION
*/ #define DEFAULT_PWM_DEVICE_NUM 0 #define IOTBUS_PWM_MAX_PERIOD 1000000 // 1s -#define IOTBUS_USEC_2_SEC 1000000 +#define IOTBUS_PWM_MAX_RESOLUTION 65536 // b16ONE struct _iotbus_pwm_s { int fd; @@ -117,7 +117,7 @@ int iotbus_pwm_set_duty_cycle(iotbus_pwm_context_h pwm, uint32_t duty_cycle) return IOTBUS_ERROR_UNKNOW...
corrects +brass printfs
:: :: compiler-twig: compiler as hoon expression :: -~& %metal-parsing +~& %brass-parsing =+ compiler-twig=(ream compiler-source) -~& %metal-parsed +~& %brass-parsed :: :: compiler-formula: compiler as nock formula :: -~& %metal-compiling +~& %brass-compiling =+ compiler-formula=q:(~(mint ut %noun) %noun compiler-twig)...
Update lang spec for new for syntax.
@@ -1909,7 +1909,7 @@ TABLE OF CONTENTS: 6.4. Looping forstmt: foriter | foreach - foreach: "for" pattern "in" expr "\n" block + foreach: "for" pattern ":" expr "\n" block foriter: "for" init "\n" cond "\n" step "\n" block whilestmt: "while" cond "\n" block @@ -1926,12 +1926,12 @@ TABLE OF CONTENTS: ;; The second form ...
machinarium: define tls api
typedef void (*machine_fiber_function_t)(void *arg); typedef void* machine_t; +typedef void* machine_tls_t; typedef void* machine_io_t; /* machine control */ @@ -66,7 +67,42 @@ machine_signal(machine_t, uint64_t); MACHINE_API int machine_cancelled(machine_t); -/* io */ +/* tls */ + +MACHINE_API machine_tls_t +machine_c...
Docs: Added ACPI examples patches to Sample.plist
<array> <dict> <key>Comment</key> - <string>SAT0 to SATA</string> + <string>_Q11 to XQ11</string> <key>Count</key> - <integer>0</integer> + <integer>1</integer> <key>Enabled</key> <false/> <key>Find</key> - <data>U0FUMA==</data> + <data>X1ExMQ==</data> <key>Limit</key> <integer>0</integer> <key>Mask</key> <key>OemTable...
gzip: fix compilation errors on Microsoft Visual C++ Incrementing a void pointer is GCC extension and not allowed in the standard C. To be portable, we need to cast the pointer to (char *).
@@ -87,7 +87,7 @@ int flb_gzip_compress(void *in_data, size_t in_len, gzip_header(out_buf); /* Header offset */ - pb = out_buf + FLB_GZIP_HEADER_OFFSET; + pb = (char *) out_buf + FLB_GZIP_HEADER_OFFSET; flush = Z_NO_FLUSH; while (1) { @@ -116,7 +116,7 @@ int flb_gzip_compress(void *in_data, size_t in_len, /* Construct ...
fix: use python3
@@ -16,7 +16,7 @@ jobs: - name: Install dependencies run: | sudo apt-get update - sudo apt-get install -y cmake cmake-data git doxygen python curl rsync + sudo apt-get install -y cmake cmake-data git doxygen python3 curl rsync - name: Check run: | set -e @@ -36,7 +36,7 @@ jobs: rm -rf *_stub.a cd $TRAVIS_BUILD_DIR cp -...
ModelData:getMeshIndex is 1-based;
@@ -432,8 +432,8 @@ static int l_lovrModelDataGetMeshIndex(lua_State* L) { AttributeData data = { .raw = model->buffers[mesh->indices->buffer].data }; data.u8 += mesh->indices->offset; switch (mesh->indices->type) { - case U16: lua_pushinteger(L, data.u16[index]); return 1; - case U32: lua_pushinteger(L, data.u32[index...
fix(gui): event target should be initialized
@@ -184,6 +184,7 @@ static int GetEventId(const char *event_name) void LCUI_InitWidgetEvent(LCUI_WidgetEvent e, const char *name) { + e->target = NULL; e->type = GetEventId(name); e->cancel_bubble = FALSE; e->data = NULL;
c_frame_callback: macros for frame callback (sbp.h)
@@ -43,8 +43,36 @@ extern "C" { /** Default sender ID. Intended for messages sent from the host to the device. */ #define SBP_SENDER_ID 0x42 +/** Header length in bytes. */ +#define SBP_HEADER_LEN 6 +/** CRC length in bytes. */ +#define SBP_CRC_LEN 2 +/** Max payload length in bytes. */ +#define SBP_MAX_PAYLOAD_LEN (UI...
build: fix C flags for older compiler[s]
@@ -13,7 +13,7 @@ AM_CFLAGS = -Wall \ -O3 \ -Wstrict-aliasing=2 \ -fstrict-aliasing \ - -Wpedantic + -pedantic lib_LTLIBRARIES = libcglm.la libcglm_la_LDFLAGS = -no-undefined -version-info 0:1:0
Handle list not being present for some reason.
@@ -713,7 +713,7 @@ void wsgi_publish_event(const char *name, PyObject *event) dict = PyModule_GetDict(module); list = PyDict_GetItemString(dict, "event_callbacks"); - Py_INCREF(list); + Py_XINCREF(list); Py_DECREF(module); }
speed-up almost 1.5x backward kernel
@@ -642,3 +642,43 @@ __forceinline__ __device__ float AtomicFMA(float* dst, float alpha, float val) { } while (assumed != old); return __int_as_float(old); } + + + +template <int BlockSize> +__forceinline__ __device__ float4 SharedReduce4(float4 val, float* tmp) { + Float4ToSharedMemory<BlockSize>(val, tmp, threadIdx.x...
Fix SCRIPT EXISTS crash SCRIPT EXISTS was using the wrong message routing option causing all the replica messages to go to the local redis instance. And Dynomite would crash since it processes only one of the 3 replies that Redis returns, leaving the local redis server message queue in an inconsistent state.
@@ -1065,6 +1065,7 @@ void redis_parse_req(struct msg *r, struct context *ctx) { // This is not to be confused with 'EXISTS'. This is the second half of the // command 'SCRIPT EXISTS'. r->type = MSG_REQ_REDIS_SCRIPT_EXISTS; + r->msg_routing = ROUTING_ALL_NODES_ALL_RACKS_ALL_DCS; r->is_read = 1; break; }
Fix console receiving input when hidden
@@ -131,11 +131,11 @@ LRESULT APIENTRY Overlay::WndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lP return 0; } + if (s_pOverlay->IsEnabled()) + { if (ImGui_ImplWin32_WndProcHandler(hwnd, uMsg, wParam, lParam)) return 1; - if (s_pOverlay->IsEnabled()) - { // ignore mouse & keyboard events if ((uMsg >= WM_MOUSEFIRST ...