search for: strrchr

Displaying 20 results from an estimated 254 matches for "strrchr".

Did you mean: strchr
2002 Aug 09
1
oggenc core dump
...0 #1 0xdf8eb94d in qsort () from /usr/lib/libc.so.1 #2 0xdfa8d90a in _vp_noise_normalize_sort () from /usr/local/lib/libvorbis.so.0 #3 0xdfa94ac4 in mapping0_forward () from /usr/local/lib/libvorbis.so.0 #4 0xdfa8b025 in vorbis_analysis () from /usr/local/lib/libvorbis.so.0 #5 0x0804d099 in strrchr () #6 0x0804a160 in strrchr () #7 0x080497db in strrchr () The core dump happens at 13.8%. If I change the bitrate to 192 it does not core dump. I can provide the core file and the wav file if it helps. - -Dave dnewman@maraudingpirates.org <p>-----BEGIN PGP SIGNATURE----- Version: GnuP...
2004 Sep 08
0
[PATCH]Extending user@host syntax
...fwd_port, fwd_host_port; char sfwd_port[6], sfwd_host_port[6]; - - char *p, *cp, *line, buf[256]; + char *p, *cp, *line, buf[256], *host_key_aliasp; struct stat st; struct passwd *pw; int dummy; @@ -474,6 +475,28 @@ host = ++cp; } else host = *av; + + host_key_aliasp = 0; + if (strrchr(host, '%')) { + cp = strrchr(host, '%'); + *cp++ = '\0'; + if (strrchr(cp, ',')) { + host_key_aliasp = strrchr(cp, ','); + *host_key_aliasp++ = '\0'; + } + options.port = a2port(cp); + if (options.port == 0) { + fprintf(stderr, &q...
2016 May 11
2
Bug Report - Crash on imap with core dump - Alternate storage related
...L-PARTIAL CATENATE UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS BINARY MOVE SPECIAL-USE QUOTA] Logged in as daniel.colchete at mav.com.br a select INBOX Program received signal SIGSEGV, Segmentation fault. strrchr () at ../sysdeps/x86_64/strrchr.S:32 32 ../sysdeps/x86_64/strrchr.S: No such file or directory. (gdb) where #0 strrchr () at ../sysdeps/x86_64/strrchr.S:32 #1 0x00007ffff7b0a261 in sdbox_file_move (file=file at entry=0x5555557e6530, alt_path=alt_path at entry=true) at sdbox-file.c:312 #2 0x...
2016 May 12
2
Bug Report - Crash on imap with core dump - Alternate storage related
...; LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN >> CONTEXT=SEARCH LIST-STATUS BINARY MOVE SPECIAL-USE QUOTA] Logged in as >> daniel.colchete at mav.com.br >> a select INBOX >> >> Program received signal SIGSEGV, Segmentation fault. >> strrchr () at ../sysdeps/x86_64/strrchr.S:32 >> 32 ../sysdeps/x86_64/strrchr.S: No such file or directory. >> (gdb) where >> #0 strrchr () at ../sysdeps/x86_64/strrchr.S:32 >> #1 0x00007ffff7b0a261 in sdbox_file_move (file=file at entry=0x5555557e6530, >> alt_path=alt_p...
2009 Apr 18
2
[LLVMdev] [patch] vmkit compiled using gcc
I have tested compiling vmkit using gcc3.4 and gcc4.4 Some vmkit files required that I added some explicit typecasts and #includes in order to compile. I have attached my changes against the vmkit svn trunk rev 69439 Using this patch both versions of gcc managed to compiled vmkit on my machine. Cheers Xerxes -------------- next part -------------- An embedded and charset-unspecified text was
2009 Apr 18
0
[LLVMdev] [patch] vmkit compiled using gcc
Applied thanks! http://lists.cs.uiuc.edu/pipermail/vmkit-commits/2009-April/000815.html Btw, what are the error messages for these? > - char * res = strstr(haystack, needle); > + char * res = (char *)strstr(haystack, needle); > - char* ptr = strrchr(name, '/'); > + char* ptr = (char*)strrchr(name, '/'); Nicolas Xerxes Rånby wrote: > I have tested compiling vmkit using gcc3.4 and gcc4.4 > Some vmkit files required that I added some explicit typecasts and > #includes in order to compile. > I have attached my c...
2003 Aug 26
1
Tired of "filename too long"? Me too...
...- static int get_tmpname(char *fnametmp, char *fname) { - char *f; + char *f, holder; + size_t len; + + if(strlen(fname) > MAXPATHLEN) { + rprintf(FERROR,"%s: filename too long\n", fname); + return 0; + } + + holder = 0; /* open tmp file */ if (tmpdir) { + int tlen; f = strrchr(fname,'/'); if (f == NULL) f = fname; else f++; - if (strlen(tmpdir)+strlen(f)+10 > MAXPATHLEN) { - rprintf(FERROR,"filename too long\n"); + tlen = strlen(tmpdir) + 10; + if(tlen > MAXPATHLEN) { + rprintf(FERROR,"%s: filename too long\n", tmp...
2012 Jun 20
2
CentOS 6.2-x86-64
...t char*? to ?char*? gmake[2]: *** [header.o] Error 1 gmake[2]: Leaving directory `/usr/src/mailfilter-0.8.2/src' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/usr/src/mailfilter-0.8.2' gmake: *** [all] Error 2 =================== Lines 77-78 in that file: if (!(dom = strrchr (msgid, '@'))) return -1; Obviously strrchr() tries to convert the header spec here from line 35: int Header :: rfc822_valid_msgid (const char* msgid) into a plain char. Boom on a 64 bit machine. 2nd Question: How best to fix that? I know enough C to be dangerous, but somewhere...
2000 Nov 21
2
IRIX patch for vorbis *
...wants) and not *bytes* (what AO passes) I also added no-dependencies to the Makefile.ams because that needs GNU CC to work properly and it was turning into a little headache to get MIPSpro to this in the way GNU make wants it. IRIX libc doesn't have rindex but it looks like GNU libc has strrchr (dunno about BSD's libc). If I'm not mistaken getopts_long is a GNU libc'ism. And I need to include limits.h to get NAME_MAX. If you are cool with all of this, I'll clean this patch up. I only tested with IRIX/MIPSpro. (In other words, no, libao doesn't work on IRIX...
2017 Nov 01
2
Bug: lmtp proxy does not quote local parts with spaces
...e code in lmtp_unescape_address() [src/lmtp/commands.c] to use rfc822_parse_quoted_string(). 2. This leads to the second problem where the username becomes ambiguous if the local-part contains an @ (regardless of whether or not the first fix is applied or not). I've worked around this by using strrchr() instead of strchr() on the username string to split the domain out in mail_user_hash() [src/lib-mail/mail-user-hash.c] and message_detail_address_parse() [src/lib-mail/message-address.c], although likely I've missed some place this change should be made. 3. The third problem is then re-encod...
2016 Jul 21
4
Openssh use enumeration
.../openbsd-compat/xcrypt.c +++ b/openbsd-compat/xcrypt.c @@ -78,14 +78,18 @@ pick_salt(void) if (salt[0] != '\0') return salt; strlcpy(salt, "xx", sizeof(salt)); - if ((pw = getpwuid(0)) == NULL) - return salt; - passwd = shadow_pw(pw); - if (passwd[0] != '$' || (p = strrchr(passwd + 1, '$')) == NULL) - return salt; /* no $, DES */ - typelen = p - passwd + 1; - strlcpy(salt, passwd, MIN(typelen, sizeof(salt))); - explicit_bzero(passwd, strlen(passwd)); + setpwent(); + while ((pw = getpwent()) != NULL) { + passwd = shadow_pw(pw); + if (passwd[0] == '$...
2014 Sep 19
2
[LLVMdev] Optimization of string.h calls
Hello all. Is there a way to get llvm/clang at build-time to optimize a string.h call so that the final form of the string is saved in the binary? For instance, for a statement like... strrchr(__FILE__, '/') + 1 …and where clang is called on this code’s source file with “clang /some/long/path/file.c”, can I end up with only “file.c” stored in the binary on disk? I think you can see that I am attempting to avoid full paths from my machine ending up in the program. My IDE, Xcode...
2005 Apr 28
0
[LLVMdev] SimplifyLibCalls Pass -- Help!
...ers) * sprintf(dest,"%s",orig) -> strcpy(dest,orig) (only if the sprintf result is not used) sqrt, sqrtf, sqrtl: * sqrt(cnst) -> cnst' * sqrt(expN(x)) -> expN(x*0.5) * sqrt(Nroot(x)) -> pow(x,1/(2*N)) * sqrt(pow(x,y)) -> pow(|x|,y*0.5) strchr, strrchr: * strchr(s,c) -> offset_of_in(c,s) (if c is a constant integer and s is a constant string) * strrchr(s,c) -> reverse_offset_of_in(c,s) (if c is a constant integer and s is a constant string) * strrchr(s1,0) -> strchr(s1,0) strcmp: * strcmp(x,x) -> 0 * str...
2015 Feb 24
4
Current 6.8 git build issues on HP-UX
...ame; #endif @@ -43,13 +41,12 @@ char *__progname; */ char *ssh_get_progname(char *argv0) { + char *p, *q; #ifdef HAVE___PROGNAME extern char *__progname; - return xstrdup(__progname); + p = progname; #else - char *p; - if (argv0 == NULL) return ("unknown"); /* XXX */ p = strrchr(argv0, '/'); @@ -57,9 +54,12 @@ char *ssh_get_progname(char *argv0) p = argv0; else p++; - - return (xstrdup(p)); #endif + if ((q = strdup(p)) == NULL) { + perror("strdup"); + exit(1); + } + return q; } #ifndef HAVE_SETLOGIN -- Darren Tucker (dtucker at zip.com.au...
2017 Aug 03
2
proxy-dict with tcp connection
...ntf("Invalid IP: %s in URI: %s", args[0], uri); + return -1; + } + if (net_str2port(args[1], &port) < 0) { + *error_r = t_strdup_printf("Invalid port: %s in URI: %s", args[1], uri); + return -1; + } + dest_uri = strrchr(uri, ':'); + } else if (uri[0] == ':') { /* default path */ path = t_strconcat(set->base_dir, "/"DEFAULT_DICT_SERVER_SOCKET_FNAME, NULL); @@ -784,7 +802,13 @@ client_dict_init(struct dict *driver, const char *uri, path = t_strc...
2017 Jul 03
1
[PATCH] dsync: fix splitting login from host
....c b/src/doveadm/doveadm-dsync.c index caf569f1d..3b8d4549a 100644 --- a/src/doveadm/doveadm-dsync.c +++ b/src/doveadm/doveadm-dsync.c @@ -479,7 +479,7 @@ parse_ssh_location(const char *location, const char *username) { const char *host, *login; - host = strchr(location, '@'); + host = strrchr(location, '@'); if (host != NULL) login = t_strdup_until(location, host++); else { -- 2.11.0
2009 May 26
1
Bug or feature in 1.6.1 (Was: How to register with TCP transport) ?
...rd at 192.168.100.129>" > statement correct ? > > Regards > I read in chan_sip.c that block inside sip_register : /* split [/contact][~expiry] */ expire = strchr(buf, '~'); if (expire) *expire++ = '\0'; callback = strrchr(buf, '/'); // My comment: contact is search at the end of input register line if (callback) *callback++ = '\0'; if (ast_strlen_zero(callback)) callback = "s"; sip_parse_host(buf, lineno, &username, &am...
2007 Mar 16
0
libswfdec/swfdec_loader.c
...448,17 @@ swfdec_loader_get_filename (SwfdecLoader } ret = g_filename_from_utf8 (start, end ? end - start : -1, NULL, NULL, NULL); if (ret) { - char *dot; const char *ext; ext = swfdec_loader_data_type_get_extension (loader->data_type); - if (*ext && (dot = strrchr (ret, '.'))) { + if (*ext) { + char *dot = strrchr (ret, '.'); char *real; - guint len = strlen (dot); - if (len <= 5) { - real = g_strdup_printf ("%*s.%s", dot - ret, ret, ext); - } else { - real = g_strdup_printf ("%s.%s", ret,...
2014 Mar 20
3
[Bug 2213] New: X11 forwarding to DISPLAY containing a hexadecimal-colon IPv6 address fails
...on (line 3582): connect 2001 port 6006: Invalid argument Error: Can't open display: localhost:10.0 A workaround is documented here: http://www.technologische-hilfe.de/antworten/lightdm-xdm-sitzung-und-ipv6-support-241428392.html My guess is that the problem can be solved by using strrchr in that statement: cp = strrchr(buf, ':'); -- You are receiving this mail because: You are watching the assignee of the bug.
2013 Apr 02
0
flac 1.3.0pre3 pre-release
...utilities/flac_mac/main.c index 8c8fa3d..8ffa5b6 100644 --- a/src/monkeys_audio_utilities/flac_mac/main.c +++ b/src/monkeys_audio_utilities/flac_mac/main.c @@ -133,7 +133,7 @@ int main(int argc, char *argv[]) /* for the full 'from' and 'to' paths for the renamer process */ p = strrchr(argv[from_arg],'\\'); safe_strncat(from, p? p+1 : argv[from_arg], sizeof(from)); - safe_strncpy(to, from, sizeof(to), sizeof(to)); + safe_strncpy(to, from, sizeof(to)); cptr = strrchr(from,'.'); if(cptr == NULL) -------------- next part -------------- diff --git a/src/u...