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

dos-an-infinite-loop-ngiflib-c-669 #7

Closed
Edward-L opened this issue Jun 1, 2018 · 2 comments
Closed

dos-an-infinite-loop-ngiflib-c-669 #7

Edward-L opened this issue Jun 1, 2018 · 2 comments

Comments

@Edward-L
Copy link

Edward-L commented Jun 1, 2018

in LoadGif ngiflig.c:669 has an infinite loop
if id dont match any case ,it wont break

poc:
poc

@Edward-L
Copy link
Author

Edward-L commented Jun 1, 2018

I think in GetByte ngiflib.c:73 have some problem.

this demo also have an infinite loop, it seems likes yours

int main()
{
     int i=0;	
     FILE* fp=fopen("1.txt","r");
    while(i = getc(fp)){	
	printf("%c",i);
    }
    return 0;
}

miniupnp added a commit that referenced this issue Jun 1, 2018
Signed-off-by: Thomas Bernard <miniupnp@free.fr>
@miniupnp
Copy link
Owner

miniupnp commented Jun 1, 2018

I think it is fixed by 2cecb53

@miniupnp miniupnp closed this as completed Jun 1, 2018
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