Skip to content
This repository was archived by the owner on Apr 17, 2022. It is now read-only.
This repository was archived by the owner on Apr 17, 2022. It is now read-only.

Memory clobbering (dereferenced pointers) in event.c #2300

Closed

Description

@wzdev-ci

resolution_fixed type_bug | by Buginator


dereferenced pointers in event.c.

More to follow in a bit.


Issue migrated from trac:2300 at 2022-04-16 06:45:49 -0700

Activity

  1. wzdev-ci commented on Nov 8, 2010

    @wzdev-ci
    ContributorAuthor

    buginator <buginator@...> commented


    (In Warzone2100/warzone2100@1a6fb8a) Fix another memory clobbering issue. (dereferenced pointer)

    Patch Author: Safety0ff
    fixes #2300

    Original detective work done by Ai_Tak (#1656)

    Signed-off-by: buginator <buginator@>

  2. wzdev-ci commented on Nov 8, 2010

    @wzdev-ci
    ContributorAuthor

    Buginator changed _comment0 which not transferred by tractive

  3. wzdev-ci commented on Nov 8, 2010

    @wzdev-ci
    ContributorAuthor

    buginator <buginator@...> changed status from new to closed

  4. wzdev-ci commented on Nov 8, 2010

    @wzdev-ci
    ContributorAuthor

    buginator <buginator@...> changed resolution from `` to fixed

  5. wzdev-ci commented on Nov 8, 2010

    @wzdev-ci
    ContributorAuthor

    Buginator uploaded file val_no_fe.txt (1.4 KiB)

  6. wzdev-ci commented on Nov 8, 2010

    @wzdev-ci
    ContributorAuthor

    Buginator uploaded file val_with_fe.txt (2.0 KiB)

  7. wzdev-ci commented on Nov 8, 2010

    @wzdev-ci
    ContributorAuthor

    Buginator uploaded file val_wPatch_fe.txt (1.2 KiB)

  8. wzdev-ci commented on Nov 8, 2010

    @wzdev-ci
    ContributorAuthor

    Buginator uploaded file val_wPatch_sa_fe.txt (1.2 KiB)

  9. wzdev-ci commented on Nov 8, 2010

    @wzdev-ci
    ContributorAuthor

    Buginator uploaded file warzone2100.gdmp-DXGWAl.txt (9.9 KiB)

  10. wzdev-ci commented on Nov 8, 2010

    @wzdev-ci
    ContributorAuthor

    Buginator changed _comment0 which not transferred by tractive

  11. wzdev-ci commented on Nov 8, 2010

    @wzdev-ci
    ContributorAuthor

    buginator <buginator@...> commented


    In Warzone2100/warzone2100@1a6fb8a:

    #CommitTicketReference repository="" revision="1a6fb8a7547f23ce2bd7af153ac839cba999e2b0"
    Fix another memory clobbering issue. (dereferenced pointer)
    
    Patch Author: Safety0ff
    fixes #2300
    
    Original detective work done by Ai_Tak (#1656)
    
    Signed-off-by: buginator <buginator@>
    
  12. wzdev-ci commented on Nov 8, 2010

    @wzdev-ci
    ContributorAuthor

    Buginator commented


    The deal is, when you run normal valgrind, then you get val_no_fe.txt.
    Notice the invalid reads.

    When you set valgrind to fill the free()ed memory with 0xfe, (--fill-free=0xfe then you get val_with_fe.txt, and also the crash dump.

    The final results are in val_wPatch_sa_fe.txt, and we don't have invalid reads anymore.

  13. wzdev-ci commented on Nov 9, 2010

    @wzdev-ci
    ContributorAuthor

    cybersphinx <chr.ohm@...> commented


    (In Warzone2100/warzone2100@34112c9) Fix another memory clobbering issue. (dereferenced pointer)

    Patch Author: Safety0ff
    fixes #2300

    Original detective work done by Ai_Tak (#1656)

    Signed-off-by: buginator buginator@gna.org
    (cherry picked from commit 1a6fb8a7547f23ce2bd7af153ac839cba999e2b0)

  14. wzdev-ci commented on Nov 9, 2010

    @wzdev-ci
    ContributorAuthor

    cybersphinx <chr.ohm@...> commented


    In Warzone2100/warzone2100@34112c9:

    #CommitTicketReference repository="" revision="34112c9e2bb5da22eac9e4a5ecb71229b6df07d2"
    Fix another memory clobbering issue. (dereferenced pointer)
    
    Patch Author: Safety0ff
    fixes #2300
    
    Original detective work done by Ai_Tak (#1656)
    
    Signed-off-by: buginator <buginator@gna.org>
    (cherry picked from commit 1a6fb8a7547f23ce2bd7af153ac839cba999e2b0)
    
  15. wzdev-ci commented on Nov 9, 2010

    @wzdev-ci
    ContributorAuthor

    Safety0ff commented


    I don't really consider this "fixed", I've been looking at that part of the code lately and understanding it more and more.

    This type of error likely only occurs when a Callback event uses the setTrigger function, but there could potentialy be other ways for setTrigger calls to mess things up.

    Anyways, I'm sure that deferred deletion would solve this and it will also handle the case where multiple events are triggered and one calls setTrigger for one of those other events.

    I'd rather this not be "swept under the rug".

  16. 8 remaining items

  17. wzdev-ci commented on Nov 20, 2010

    @wzdev-ci
    ContributorAuthor

    cybersphinx uploaded file defdel-cleaned-up.patch (8.6 KiB)

    Rebased on a tree with 1a6fb8a7547f23ce2bd7af153ac839cba999e2b0 already reverted.

  18. wzdev-ci commented on Nov 20, 2010

    @wzdev-ci
    ContributorAuthor

    Safety0ff uploaded file defdelMaster.2.patch (9.5 KiB)

  19. wzdev-ci commented on Nov 20, 2010

    @wzdev-ci
    ContributorAuthor

    cybersphinx uploaded file defdel2-cleaned-up.patch (8.6 KiB)

    Patch without the revert.

  20. wzdev-ci commented on Nov 20, 2010

    @wzdev-ci
    ContributorAuthor

    Safety0ff uploaded file defdelMaster.3.patch (9.0 KiB)

    Fixed a bug (notice the lack of fixme)

  21. wzdev-ci commented on Nov 20, 2010

    @wzdev-ci
    ContributorAuthor

    Safety0ff uploaded file defdel3-cleaned-up.patch (8.4 KiB)

    Same as above without revert

  22. wzdev-ci commented on Nov 21, 2010

    @wzdev-ci
    ContributorAuthor

    safety0ff changed status from reopened to closed

  23. wzdev-ci commented on Nov 21, 2010

    @wzdev-ci
    ContributorAuthor

    safety0ff changed resolution from `` to fixed

  24. wzdev-ci commented on Nov 21, 2010

    @wzdev-ci
    ContributorAuthor

    safety0ff commented


    Fix an invalid pointer dereferencing issue in the script events system.

    Closes #2300.
    Changeset: 8c9e7d5bd0bcc0029ba50422b5b77089ed4202fe

  25. wzdev-ci commented on Nov 22, 2010

    @wzdev-ci
    ContributorAuthor

    safety0ff commented


    2.3: Fix an invalid pointer dereferencing issue in the script events system.

    Closes #2300.
    Changeset: ddfaeca6776aac765674bb0c2a5c58ecc63a978f

  26. wzdev-ci commented on Nov 22, 2010

    @wzdev-ci
    ContributorAuthor

    safety0ff commented


    3.0: Fix an invalid pointer dereferencing issue in the script events system.

    Closes #2300.
    Changeset: dfbceff8647ecf3e488733ed7e18e4901e4ee774

  27. wzdev-ci commented on Dec 16, 2010

    @wzdev-ci
    ContributorAuthor

    buginator commented


    Fix another memory clobbering issue. (dereferenced pointer)

    Patch Author: Safety0ff
    fixes #2300

    Original detective work done by Ai_Tak (#1656)

    Signed-off-by: buginator buginator@gna.org
    (cherry picked from commit 1a6fb8a7547f23ce2bd7af153ac839cba999e2b0)
    Changeset: f8517a7716e2fe11a78fc49ca73ac92b2f7d5211

  28. wzdev-ci commented on Dec 16, 2010

    @wzdev-ci
    ContributorAuthor

    safety0ff commented


    Fix an invalid pointer dereferencing issue in the script events system.

    Closes #2300.
    Changeset: 8c9e7d5bd0bcc0029ba50422b5b77089ed4202fe

  29. wzdev-ci commented on Jan 3, 2012

    @wzdev-ci
    ContributorAuthor

    cybersphinx changed milestone from 3.0 to unspecified

  30. wzdev-ci commented on Jan 3, 2012

    @wzdev-ci
    ContributorAuthor

    cybersphinx commented


    Milestone 3.0 deleted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions