[PATCH] fixup! commands: add stacksmash command for causing stack overflows

Ahmad Fatoum a.fatoum at pengutronix.de
Thu Sep 14 04:05:24 PDT 2023


On 14.09.23 12:22, Thorsten Scherer wrote:
> Hi Ahmad,
> 
> sha just applied four of the five patches and stacksmash isn't in next
> yet.
> 
> Refer,
> 
>     Message-ID: <20230912093638.GZ637806 at pengutronix.de>

He did? 20230912093638.GZ637806 at pengutronix.de is an unrelated series:

https://lore.barebox.org/barebox/20230912093638.GZ637806@pengutronix.de/

Cheers,
Ahmad

> 
> Best regards,
> Thorsten
> 
> On Thu, Sep 14, 2023 at 11:14:38AM +0200, Ahmad Fatoum wrote:
>> commands: stacksmash: fix whitespace in command description
>>
>> Command description mixed spaces and tabs. Fix it to have tabs only.
>>
>> Cc: Thorsten Scherer <T.Scherer at eckelmann.de>
>> Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
>> ---
>> Thanks, Thorsten!
>> ---
>>  commands/stacksmash.c | 8 ++++----
>>  1 file changed, 4 insertions(+), 4 deletions(-)
>>
>> diff --git a/commands/stacksmash.c b/commands/stacksmash.c
>> index 1e9be0d40e15..b812d945e215 100644
>> --- a/commands/stacksmash.c
>> +++ b/commands/stacksmash.c
>> @@ -50,9 +50,9 @@ static int do_stacksmash(int argc, char *argv[])
>>  	panic("Stack smashing of %s not caught\n", argv[1]);
>>  }
>>  BAREBOX_CMD_START(stacksmash)
>> -        .cmd            = do_stacksmash,
>> -        BAREBOX_CMD_DESC("Run stack smashing tests")
>> +	.cmd            = do_stacksmash,
>> +	BAREBOX_CMD_DESC("Run stack smashing tests")
>>  	BAREBOX_CMD_OPTS("[frame | region]")
>> -        BAREBOX_CMD_GROUP(CMD_GRP_MISC)
>> -        BAREBOX_CMD_COMPLETE(empty_complete)
>> +	BAREBOX_CMD_GROUP(CMD_GRP_MISC)
>> +	BAREBOX_CMD_COMPLETE(empty_complete)
>>  BAREBOX_CMD_END
>> -- 
>> 2.39.2
>>
> 

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |




More information about the barebox mailing list