public inbox for src-cvs@sourceware.org help / color / mirror / Atom feed
From: geoffk@sourceware.org To: src-cvs@sourceware.org Subject: src/libiberty ChangeLog cp-demangle.c cp-deman ... Date: Thu, 21 Dec 2006 01:32:00 -0000 [thread overview] Message-ID: <20061221013248.29441.qmail@sourceware.org> (raw) CVSROOT: /cvs/src Module name: src Changes by: geoffk@sourceware.org 2006-12-21 01:32:48 Modified files: libiberty : ChangeLog cp-demangle.c cp-demangle.h libiberty/testsuite: demangle-expected test-demangle.c Log message: * cp-demangle.h: Add comment explaining what to do to avoid overrunning string. (d_check_char): New. (d_next_char): Don't advance past trailing '\0'. * cp-demangle.c (cplus_demangle_mangled_name): Use d_check_char. (d_nested_name): Likewise. (d_special_name): Likewise. (d_call_offset): Likewise. (d_function_type): Likewise. (d_array_type): Likewise. (d_pointer_to_member_type): Likewise. (d_template_param): Likewise. (d_template_args): Likewise. (d_template_arg): Likewise. (d_expr_primary): Likewise. (d_local_name): Likewise. (d_substitution): Likewise. (d_ctor_dtor_name): Use d_advance rather than d_next_char. * testsuite/test-demangle.c: Include sys/mman.h. (MAP_ANONYMOUS): Define. (protect_end): New. (main): Use protect_end. * testsuite/demangle-expected: Add testcases for overrunning the end of the string. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/src/libiberty/ChangeLog.diff?cvsroot=src&r1=1.405&r2=1.406 http://sourceware.org/cgi-bin/cvsweb.cgi/src/libiberty/cp-demangle.c.diff?cvsroot=src&r1=1.63&r2=1.64 http://sourceware.org/cgi-bin/cvsweb.cgi/src/libiberty/cp-demangle.h.diff?cvsroot=src&r1=1.5&r2=1.6 http://sourceware.org/cgi-bin/cvsweb.cgi/src/libiberty/testsuite/demangle-expected.diff?cvsroot=src&r1=1.34&r2=1.35 http://sourceware.org/cgi-bin/cvsweb.cgi/src/libiberty/testsuite/test-demangle.c.diff?cvsroot=src&r1=1.9&r2=1.10
next reply other threads:[~2006-12-21 1:32 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2006-12-21 1:32 geoffk [this message] -- strict thread matches above, loose matches on Subject: below -- 2013-11-22 23:06 dj 2010-05-06 21:40 dj 2007-01-30 23:17 dj 2004-06-28 18:01 dj 2004-02-25 5:40 dj
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20061221013248.29441.qmail@sourceware.org \ --to=geoffk@sourceware.org \ --cc=src-cvs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).