Welcome, Guest. Please login or register.

Author Topic: "strange" text captured...  (Read 3341 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline FluffyMcDeath

  • Hero Member
  • *****
  • Join Date: Jun 2002
  • Posts: 3440
    • Show all replies
Re: "strange" text captured...
« on: February 08, 2003, 08:18:24 PM »
Quote

dcr8520 wrote:
joder Zurt k cosas pides.. :-D

well, step by step... mmm...

I get the file httpget.c from the AmiTCP 4.3 SDK, and was edited a bit:

try compiling this:

+++++++++++++++++++C+U+T+++H+E+R+E++++++++++++++++++++++++++++++++++


Well, I don't know where p5 put their ROM, but if they need special things down right from the get go, then sticking it at address 0 would seem prudent. In that case, this text could represent a read from address 0 probably from a NULL pointer.

I didn't find that particular bug, but you have bugs that could be causing the kind of corruption that could cause this later (and somewhat randomly). For example...
Quote

//int httpget(char * url)
int main()
{
  char buf[1024], *url;
  char * p, * u;
  int i, port = 80, sd;

  *p = '\0';

 if(!(init())) err("Can't open LIB!");

  if ((sd = do_connect("www.amiga.com", port)) < 0) err("err conectando!");

  *p = '/';

 
Here you dereference p without assigning it an address to point to.

i.e. you set the address that p points to the value char 0 before you set p to an address. So, somewhere in memory, and you cannot tell where, you are altering a byte!!

Your compiler should be warning you.