Skip to content

Instantly share code, notes, and snippets.

(II) SetTapState - 0 -> 1 (millis:402152575)
(II) vert two-finger scroll detected
(II) horiz two-finger scroll detected
[synaptics.c] finger_scroll_update_sd:1995 RPORTED: -1802, SMOOTHED: 994.000000
[synaptics.c] finger_scroll_update_sd:1995 RPORTED: -1802, SMOOTHED: 928.750000
[synaptics.c] finger_scroll_update_sd:1995 RPORTED: -1802, SMOOTHED: 866.762500
[synaptics.c] finger_scroll_update_sd:1995 RPORTED: -1802, SMOOTHED: 807.874375
[synaptics.c] finger_scroll_update_sd:1995 RPORTED: -1802, SMOOTHED: 751.930656
[synaptics.c] finger_scroll_update_sd:1995 RPORTED: -1802, SMOOTHED: 698.784123
[synaptics.c] finger_scroll_update_sd:1995 RPORTED: -1796, SMOOTHED: 648.294917
(II) SetTapState - 0 -> 1 (millis:406465182)
(II) SetMovingState - 0 -> 1 center at 147/685 (millis:406465210)
(II) SetTapState - 1 -> 2 (millis:406465210)
(II) SetMovingState - 1 -> 0 center at -1029/478 (millis:406465603)
(II) SetTapState - 2 -> 0 (millis:406465603)
(II) SetTapState - 0 -> 1 (millis:406466158)
(II) vert two-finger scroll detected
(II) horiz two-finger scroll detected
(II) SetMovingState - 0 -> 1 center at 1052/-1192 (millis:406466159)
(II) SetTapState - 1 -> 2 (millis:406466159)
[eventcomm.c] ProcessPosition:566 S= 0 X= -383. SENDING
[eventcomm.c] ProcessPosition:566 S= 0 Y= -1467. SENDING
[eventcomm.c] ProcessPosition:566 S= 1 X= 682. SENDING
[eventcomm.c] ProcessPosition:566 S= 1 Y= -1619. SENDING
(II) SetTapState - 0 -> 1 (millis:406967972)
(II) vert two-finger scroll detected
(II) horiz two-finger scroll detected
[eventcomm.c] ProcessPosition:566 S= 0 X= -385. SENDING
[eventcomm.c] ProcessPosition:566 S= 0 Y= -1452. SENDING
[eventcomm.c] ProcessPosition:566 S= 1 X= 684. SENDING
(II) SetTapState - 0 -> 1 (millis:488126018)
(II) vert two-finger scroll detected
(II) horiz two-finger scroll detected
[synaptics.c] finger_scroll_update:1979 Current: First=-1453, Second=0
(II) SetMovingState - 0 -> 1 center at 476/-1581 (millis:488126018)
(II) SetTapState - 1 -> 2 (millis:488126018)
[synaptics.c] finger_scroll_update:1979 Current: First=-1453, Second=-1581
[synaptics.c] finger_scroll_update:1979 Current: First=-1453, Second=-1580
[synaptics.c] finger_scroll_update:1979 Current: First=-1453, Second=-1577
[synaptics.c] finger_scroll_update:1979 Current: First=-1450, Second=-1567
/usr/bin/perl Build --makefile_env_macros 1 test
t/00use.t ........... ok
t/01symname.t ....... ok
t/02getkey.t ........ ok
t/03parse_format.t .. ok
t/04flags.t ......... 1/4
# Failed test 'Autodetected RAW'
# at t/04flags.t line 37.
# got: '8'
# expected: '4'
my %MM_Options;
my @C_Modules = qw(
callbacks convert ctor async_base async_callbacks async_events);
my @XS_Modules = qw(Client Client_multi);
foreach (@XS_Modules, @C_Modules) {
my $obj = $_ . $Config{obj_ext};
push @{ $MM_Options{OBJECT} }, File::Spec->catfile('xs', $obj);
}
/*
* Copyright 2012 Couchbase, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
diff --git c/src/instance.c w/src/instance.c
index e0101d9..326de45 100644
--- c/src/instance.c
+++ w/src/instance.c
@@ -332,21 +332,21 @@ void libcouchbase_apply_vbucket_config(libcouchbase_t instance, VBUCKET_CONFIG_H
instance->backup_nodes[ii] = instance->backup_nodes[nn];
instance->backup_nodes[nn] = pp;
}
}
instance->sasl.name = vbucket_config_get_user(instance->vbucket_config);
/**
* Some versions of glibc do not take kindly to copying
* into a char[1] even if it's within valid address space
*/
#define LIBCOUCHBASE_SASL_MAXPWLEN(instance) \
((sizeof(instance->sasl.password.buffer) - \
sizeof(instance->sasl.secret.len))-1)
void
/**
$ gcc -Wall bufcpy.c -o bufcpy -O2 && ./bufcpy
GCCs __bos (For stack): 0x1
GCCs __bos (For heap): 0xffffffffffffffff
*** buffer overflow detected ***: ./bufcpy terminated
======= Backtrace: =========
/lib/libc.so.6(__fortify_fail+0x37)[0x7f04254cb667]
/lib/libc.so.6(+0xe2520)[0x7f04254ca520]
./bufcpy[0x400617]
/lib/libc.so.6(__libc_start_main+0xfd)[0x7f0425406c4d]