Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c > #383811 > unrolled thread
| Started by | "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> |
|---|---|
| First post | 2024-03-20 12:37 -0700 |
| Last post | 2024-03-20 19:45 -0700 |
| Articles | 5 — 2 participants |
Back to article view | Back to comp.lang.c
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: A Famous Security Bug "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2024-03-20 12:37 -0700
Re: A Famous Security Bug "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2024-03-20 12:45 -0700
Re: A Famous Security Bug "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2024-03-20 15:02 -0700
Re: A Famous Security Bug Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2024-03-20 16:19 -0700
Re: A Famous Security Bug "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2024-03-20 19:45 -0700
| From | "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> |
|---|---|
| Date | 2024-03-20 12:37 -0700 |
| Subject | Re: A Famous Security Bug |
| Message-ID | <utfdte$1lou1$1@dont-email.me> |
On 3/20/2024 11:18 AM, Stefan Ram wrote:
> A "famous security bug":
>
> void f( void )
> { char buffer[ MAX ];
> /* . . . */
> memset( buffer, 0, sizeof( buffer )); }
>
> . Can you see what the bug is?
>
> (I have already read the answer; I post it as a pastime.)
Add in a volatile? ;^)
[toc] | [next] | [standalone]
| From | "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> |
|---|---|
| Date | 2024-03-20 12:45 -0700 |
| Message-ID | <utfecl$1lou2$1@dont-email.me> |
| In reply to | #383811 |
On 3/20/2024 12:37 PM, Chris M. Thomasson wrote:
> On 3/20/2024 11:18 AM, Stefan Ram wrote:
>> A "famous security bug":
>>
>> void f( void )
>> { char buffer[ MAX ];
>> /* . . . */
>> memset( buffer, 0, sizeof( buffer )); }
>>
>> . Can you see what the bug is?
>>
>> (I have already read the answer; I post it as a pastime.)
>
> Add in a volatile? ;^)
Also, show us the definition of MAX...
[toc] | [prev] | [next] | [standalone]
| From | "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> |
|---|---|
| Date | 2024-03-20 15:02 -0700 |
| Message-ID | <utfmd6$1nv2m$1@dont-email.me> |
| In reply to | #383811 |
On 3/20/2024 12:37 PM, Chris M. Thomasson wrote:
> On 3/20/2024 11:18 AM, Stefan Ram wrote:
>> A "famous security bug":
>>
>> void f( void )
>> { char buffer[ MAX ];
>> /* . . . */
>> memset( buffer, 0, sizeof( buffer )); }
>>
>> . Can you see what the bug is?
>>
>> (I have already read the answer; I post it as a pastime.)
>
> Add in a volatile? ;^)
Instead of zeroing, what about filling it with random bytes reaped from
a TRNG?
[toc] | [prev] | [next] | [standalone]
| From | Keith Thompson <Keith.S.Thompson+u@gmail.com> |
|---|---|
| Date | 2024-03-20 16:19 -0700 |
| Message-ID | <87r0g41ofh.fsf@nosuchdomain.example.com> |
| In reply to | #383821 |
"Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> writes:
> On 3/20/2024 12:37 PM, Chris M. Thomasson wrote:
>> On 3/20/2024 11:18 AM, Stefan Ram wrote:
>>> A "famous security bug":
>>>
>>> void f( void )
>>> { char buffer[ MAX ];
>>> /* . . . */
>>> memset( buffer, 0, sizeof( buffer )); }
>>>
>>> . Can you see what the bug is?
>>>
>>> (I have already read the answer; I post it as a pastime.)
>> Add in a volatile? ;^)
>
> Instead of zeroing, what about filling it with random bytes reaped
> from a TRNG?
Why?
--
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
Working, but not speaking, for Medtronic
void Void(void) { Void(); } /* The recursive call of the void */
[toc] | [prev] | [next] | [standalone]
| From | "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> |
|---|---|
| Date | 2024-03-20 19:45 -0700 |
| Message-ID | <utg6vq$1vdv8$1@dont-email.me> |
| In reply to | #383823 |
On 3/20/2024 4:19 PM, Keith Thompson wrote:
> "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> writes:
>> On 3/20/2024 12:37 PM, Chris M. Thomasson wrote:
>>> On 3/20/2024 11:18 AM, Stefan Ram wrote:
>>>> A "famous security bug":
>>>>
>>>> void f( void )
>>>> { char buffer[ MAX ];
>>>> /* . . . */
>>>> memset( buffer, 0, sizeof( buffer )); }
>>>>
>>>> . Can you see what the bug is?
>>>>
>>>> (I have already read the answer; I post it as a pastime.)
>>> Add in a volatile? ;^)
>>
>> Instead of zeroing, what about filling it with random bytes reaped
>> from a TRNG?
>
> Why?
>
Those zeros might be "targets" for a nefarious program?
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.c
csiph-web