Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

UnHTML (Announce)

posted by bencollver Homepage, 15.07.2024, 02:14
(edited by bencollver on 15.07.2024, 02:26)

I found that the unhtml problem was the result of a buffer overflow. With more recent versions of GCC, the stack corruption changes the intitle variable to a garbage value, omitting all output after the overflow.

        char cmdbuf[20];
...
                while (ch != ' ' && ch != '>') {
                        cmdbuf[i++] = ch;
                        mygetchar();
                }


I used the following workaround:

                while (ch != ' ' && ch != '>') {
                        if (i < 19) cmdbuf[i++] = ch;
                        mygetchar();
                }


Here's a link to download binaries.

gopher://tilde.pink/1/~bencollver/files/dos/util/unhtml/

 

Complete thread:

Back to the forum
Board view  Mix view
22033 Postings in 2032 Threads, 396 registered users, 79 users online (0 registered, 79 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum