Re: [Lit.] Buffer overruns

From: Xcott Craver (caj_at_B-r-a-i-n-H-z.com)
Date: 01/27/05


Date: Thu, 27 Jan 2005 01:14:35 GMT


<jmfbahciv@aol.com> wrote:
>
>But what you guys are calling a string, we called an ASCIZ string.
>ASCIZ was the mneumonic that our assembler used to create
>an ASCII string followed by a null.
  
       Well, it wasn't exactly ASCII, because 0x00 is an ASCII
       character.
   
       This is what happens when we try to make the same bytes
       represent data and metadata. C also has the same philosophy
       for functions: little-used data values are returned as error
       codes. This has its own set of drawbacks, of course.
       
                                                       -Xcott



Relevant Pages

  • Re: improve strlen
    ... The biggest optimization is that the code is bigger. ... each test string is tested ... The object on right side is type tree, ... The way I see it is that C is portable assembler, ...
    (comp.lang.asm.x86)
  • Re: Getting Start/End time, etc. from IPM.Schedule.Meeting.Resp.Po
    ... So, if I understand you correctly, I can get at these named properties by ... both marked with the same string. ... to GetIDsFromNames and "or" the returned tag with teh appropriate type (e.g. ... then iterating over the list and calling ...
    (microsoft.public.win32.programmer.messaging)
  • Re: Macro code
    ... > I could replace any module in Berkeley Unix 4.4 whether in assembler or C." ... > create an HLL systems language for that architecture, ... was on static labeling of I/O buffers, and movement of data into static ... I/O buffer lables were string arrays. ...
    (comp.os.vms)
  • Re: GCC question
    ... you explicitly have to specify the byte order and the string is much ... padding byte here to make sure it's possible to have an array ... That's something you don't have to care about in assembler ... If you want support for that kind of fine control you have to ...
    (comp.lang.c)
  • Re: IsFile, isURL
    ... | arguments rather than simply calling Environment.GetCommandLineArgs, ... Public Sub Mainas String) ... I was using the Windows API as the original poster stated "launch links if ... |> || Public Shared Function ParseCommandLine(ByVal commandLine As ...
    (microsoft.public.dotnet.languages.vb)