Re: copy a list in 1 instruction



> if we have 2 variables l1 and l2, both of type
> std::list<SContactProperty>, can
> one then do simply:
> l1=l2;

If you have constructed l1 and/or l2 in one executable (EXE/DLL) and the
assignment is taking place in another executable (EXE/DLL) then that can
screw things up if you have done static linking with LIBs for 1+
executable(s).
You need to link with the same RTL in DLL form for both executables or make
sure that any effective allocation/deallocation occurs in one executable
type only.

The other alternative is that you have corrupted the heap/stack. When this
occurs, the program may continue "normally" and may take some while before
the damage shows up. The point where the damage show ups may be innocent and
you need to look at the validity of previous executable statements (and
sometimes a long way back).

Stephen Howe


.



Relevant Pages

  • Re: Malware Triangle
    ... > tell the students to never do it this way in the real world - what do ... Spam is just email that is ... used in a way to do some kind of damage mostly to Availability. ... Spyware are just executables that can be used in a way to do ...
    (alt.computer.security)
  • RE: [fw-wiz] Securing a Linux Firewall
    ... grab control of an executable which can cause damage. ... showing my age). ... OK - as someone who seems to represent the "remove the executables" camp, ...
    (Firewall-Wizards)
  • Re: .EXE -> .ASM -> .EXE
    ... C/C++ executables. ... When you ask for static linking, ... another library routine, ..., etc., then you wind up bringing all the ... all the code in memory when the app runs. ...
    (alt.lang.asm)
  • Re: .EXE -> .ASM -> .EXE
    ... a linker will only include those object modules that ... No wonder you think LIBs are bad; ... operating under a serious misconception here. ... C/C++ executables. ...
    (alt.lang.asm)
  • Re: understanding statically-linked binaries
    ... > If 'ldd' can show you what libs an executable is dynamically linked ... is there a way to determine after the fact what libs a given ... > OpenSSL (without using RPMs). ... With some clue about how executables are linked together on your ...
    (comp.unix.programmer)