Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] result_normal_plus[2]='\0' likely clobbers payload
- Date: Thu, 27 Jul 2006 11:56:48 +0900
- From: "Stephen J. Turnbull" <stephen@example.com>
- Subject: Re: [tlug] result_normal_plus[2]='\0' likely clobbers payload
- References: <20060726125907.GH5111@example.com> <87ejw8corz.fsf@example.com> <20060726132658.543fc969.jep200404@example.com>
- Organization: The XEmacs Project
- User-agent: Gnus/5.1007 (Gnus v5.10.7) XEmacs/21.5-b27 (linux)
>>>>> "Jim" == Jim <jep200404@example.com> writes: Jim> "Stephen J. Turnbull" wrote: >> Have you tried >> result_normal_plus[2] = '\0'; printf ("header = '%s'\n", >> result_normal_plus); Jim> Unless a backup copy of result_normal_plus[2] is made first, Jim> result_normal_plus[2]='\0'; is likely to clobber the binary Jim> data payload. Be careful! If the double is normalized, it's *guaranteed* to clobber the data.[1] But this nuisance code is not going to be in the production version anyway, it's just a check. Footnotes: [1] sez the 48-year-old snot-nosed brat. :-) -- School of Systems and Information Engineering http://turnbull.sk.tsukuba.ac.jp University of Tsukuba Tennodai 1-1-1 Tsukuba 305-8573 JAPAN Ask not how you can "do" free software business; ask what your business can "do for" free software.
- References:
- [tlug] issues with format of double (or IEEE754)
- From: Michal Hajek
- Re: [tlug] issues with format of double (or IEEE754)
- From: Stephen J. Turnbull
- [tlug] result_normal_plus[2]='\0' likely clobbers payload (was Re: issues with format of double (or IEEE754))
- From: Jim
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] Portability of Misaligned Data Access . . . . . . . (was Re: issues with format of double (or IEEE754))
- Next by Date: Re: [tlug] Portability of Misaligned Data Access . . . . . . .
- Previous by thread: [tlug] result_normal_plus[2]='\0' likely clobbers payload (was Re: issues with format of double (or IEEE754))
- Next by thread: [tlug] Portability of Misaligned Data Access . . . . . . . (was Re: issues with format of double (or IEEE754))
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links