Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FNET-4.6.3 shell wrong command bug #2

Closed
bwp530 opened this issue Aug 17, 2019 · 2 comments
Closed

FNET-4.6.3 shell wrong command bug #2

bwp530 opened this issue Aug 17, 2019 · 2 comments

Comments

@bwp530
Copy link

bwp530 commented Aug 17, 2019

in fnet_shell.c
`
if(cur_command->name == 0)
{
fnet_shell_println((fnet_shell_desc_t)shell_if_p, FNET_SHELL_ERR_CMD, argv[0]);
}

`
if cur_command is NULL, the program will crash.
so if I input wrong command, the program will crash.

@ghost
Copy link

ghost commented Dec 22, 2020

Hello,
the reported issue is not valid for the latest FNET:
cur_command->name is covered by if(cur_command) condition.

Soory for the later answer.

@butok
Copy link
Owner

butok commented Dec 22, 2020

Fixed

@butok butok closed this as completed Dec 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants