search for: pattern_len

Displaying 4 results from an estimated 4 matches for "pattern_len".

2017 Jan 02
1
[PATCH] Use ASN1_STRING_get0_data for openssl-1.1.0
...p_http_hostname_match(const char *_host,size_t _host_len, size_t pattern_prefix_len; size_t pattern_suffix_len; if(OP_UNLIKELY(_host_len>(size_t)INT_MAX))return 0; - pattern=(const char *)ASN1_STRING_data(_pattern); + pattern=(const char *)ASN1_STRING_get0_data(_pattern); pattern_len=strlen(pattern); /*Check the pattern for embedded NULs.*/ if(OP_UNLIKELY(pattern_len!=(size_t)ASN1_STRING_length(_pattern)))return 0; @@ -1805,7 +1808,7 @@ static int op_http_verify_hostname(OpusHTTPStream *_stream,SSL *_ssl_conn){ } } else if(name->type==GEN_IPADD){...
2010 Aug 26
4
[REPOST] guestfsd core capture, and virt-rescue clean shutdown
This is a repost of a previously posted set. It's been updated following review comments. [PATCH 1/4] Add a core_pattern debug command Added missing return statements. [PATCH 2/4] Call sync after guestfsd exits Remove redundant sleep 1; sync [PATCH 3/4] Shut down the appliance cleanly [PATCH 4/4] Ignore launch() error in virt-rescue These were previously 2 patches. They are otherwise
2010 Aug 03
3
Generate coredumps of the guestfs appliance
[PATCH 1/3] Add a core_pattern debug command The first patch is just a rework of Rich's earlier core dump patch. It turns it into a debug subcommand so it can be called at any time. This also has the advantage of explicitly labelling an extremely untidy API as debug. [PATCH 2/3] Call sync after guestfsd exits The second patch seems to be required for cores to be dumped reliably. I was able to
2015 Jul 17
1
[PATCH] daemon: add a space after func/macro to fit code-style
...rtions(+), 40 deletions(-) diff --git a/daemon/debug.c b/daemon/debug.c index 92f5aa6..a210db1 100644 --- a/daemon/debug.c +++ b/daemon/debug.c @@ -588,7 +588,7 @@ debug_core_pattern (const char *subcmd, size_t argc, char *const *const argv) } const char *pattern = argv[0]; - const size_t pattern_len = strlen(pattern); + const size_t pattern_len = strlen (pattern); #define CORE_PATTERN "/proc/sys/kernel/core_pattern" int fd = open (CORE_PATTERN, O_WRONLY|O_CLOEXEC); diff --git a/daemon/devsparts.c b/daemon/devsparts.c index 875238a..aebc213 100644 --- a/daemon/devsparts.c +++ b...