From: Solar Designer <solar@openwall.com>
To: musl@lists.openwall.com
Subject: Re: Daily reports: Friday - cont
Date: Sat, 9 Jul 2011 05:38:05 +0400 [thread overview]
Message-ID: <20110709013805.GA4656@openwall.com> (raw)
In-Reply-To: <4E17AAE0.60704@gmail.com>
Hi Luka,
I just want to let you know that I appreciate your frequent reports.
I intend to take a look at your latest code during the weekend.
On Sat, Jul 09, 2011 at 03:12:00AM +0200, Luka Mar??eti?? wrote:
> I apologize for the delay, I thought I had a bug in my code (the new
> String.c to be precise), but it turns out gdb was playing tricks on me.
> I've learned that it doesn't (necessarily) regard "\0<char><char><char>"
> as NULL, and three <char>s, but sometimes as some other char (like '.'
> and '='). You probably know why (octal char representation), I didn't.
This applies to C sources as well, and to some other languages. My
approach to dealing with it is generally to split/concatenate the string
right after the escape sequence, like this:
const char *k = "\xff\xa3" "34" "\xff\xff\xff\xa3" "345";
(from some code I wrote yesterday).
I think this one was actually OK without the splits, but better safe
than sorry - and like you say with octals the problem is more real.
Alexander
next prev parent reply other threads:[~2011-07-09 1:38 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-05 0:41 Daily reports: Monday Luka Marčetić
2011-07-05 14:24 ` Daily reports: Tuesday Luka Marčetić
2011-07-06 20:28 ` Daily reports: Wednesday Luka Marčetić
2011-07-07 16:18 ` Szabolcs Nagy
2011-07-07 20:27 ` Luka Marčetić
2011-07-07 20:16 ` Daily reports: Thursday Luka Marčetić
2011-07-08 22:41 ` Daily reports: Friday Luka Marčetić
2011-07-09 1:12 ` Daily reports: Friday - cont Luka Marčetić
2011-07-09 1:38 ` Solar Designer [this message]
2011-07-09 11:53 ` Daily reports: Friday Solar Designer
2011-07-09 15:30 ` Luka Marčetić
2011-07-09 22:11 ` Luka Marčetić
2011-07-13 19:46 ` Solar Designer
2011-07-10 14:52 ` Daily reports: Friday (threaded setuid testing) Rich Felker
2011-07-11 22:59 ` Daily cluts reports Luka Marčetić
2011-07-14 9:57 ` cluts: strerror_r() test (was: Daily cluts reports) Solar Designer
2011-07-14 10:41 ` cluts: strerror_r() test Luka Marčetić
2011-07-14 10:47 ` Solar Designer
2011-07-14 17:55 ` Rich Felker
2011-07-14 19:35 ` Luka Marčetić
2011-07-15 0:09 ` Daily cluts reports Luka Marčetić
2011-07-15 22:47 ` Daily cluts reports - numeric, setuid, and mid-term evaluation Luka Marčetić
2011-07-15 23:51 ` Rich Felker
2011-07-17 0:37 ` Daily cluts reports - setuid reiteration Luka Marčetić
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=20110709013805.GA4656@openwall.com \
--to=solar@openwall.com \
--cc=musl@lists.openwall.com \
/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: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
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 NNTP newsgroup(s).