GithubHelp home page GithubHelp logo

davidkinder / magnetic Goto Github PK

View Code? Open in Web Editor NEW
14.0 14.0 7.0 1.15 MB

Interpreter for games released by the UK company Magnetic Scrolls, originally written by Niclas Karlsson.

Home Page: http://www.davidkinder.co.uk/magnetic.html

License: GNU General Public License v2.0

C++ 15.07% C 80.99% Makefile 0.94% Batchfile 0.14% CSS 0.02% HTML 2.84%

magnetic's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

magnetic's Issues

Buffer overflow in do_cmp()

Address Sanitizer reports a global buffer overflow at the very first turn when running The Pawn, at line 2198 in emu.c:

tmparg[1] = arg1[1];

Error from Gargoyle:

==13068==ERROR: AddressSanitizer: global-buffer-overflow on address 0x0001046b3080 at pc 0x000104690200 bp 0x00016b78a8f0 sp 0x00016b78a8e8
READ of size 1 at 0x0001046b3080 thread T0
    #0 0x1046901fc in do_cmp emu.c:2198
    #1 0x104694e78 in ms_rungame emu.c:3442
    #2 0x104679b40 in gms_main glk.c:6107
    #3 0x1046790ac in glk_main glk.c:6176
    #4 0x104751ad8 in main main.cpp:45
    #5 0x19c553f24  (<unknown module>)

0x0001046b3080 is located 32 bytes to the left of global variable 'pc' defined in '~/garglk/terps/magnetic/Generic/emu.c:283:59' (0x1046b30a0) of size 4
0x0001046b3080 is located 0 bytes to the right of global variable 'dreg' defined in '~/garglk/terps/magnetic/Generic/emu.c:283:8' (0x1046b3060) of size 32
SUMMARY: AddressSanitizer: global-buffer-overflow emu.c:2198 in do_cmp
Shadow bytes around the buggy address:
  0x0070208f65c0: 02 f9 f9 f9 00 f9 f9 f9 00 00 f9 f9 02 f9 f9 f9
  0x0070208f65d0: 02 f9 f9 f9 02 f9 f9 f9 02 f9 f9 f9 02 f9 f9 f9
  0x0070208f65e0: 00 f9 f9 f9 01 f9 f9 f9 00 f9 f9 f9 00 f9 f9 f9
  0x0070208f65f0: 04 f9 f9 f9 04 f9 f9 f9 04 f9 f9 f9 04 f9 f9 f9
  0x0070208f6600: 00 f9 f9 f9 00 00 00 00 f9 f9 f9 f9 00 00 00 00
=>0x0070208f6610:[f9]f9 f9 f9 04 f9 f9 f9 01 f9 f9 f9 01 f9 f9 f9
  0x0070208f6620: 01 f9 f9 f9 01 f9 f9 f9 04 f9 f9 f9 00 00 00 00
  0x0070208f6630: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x0070208f6640: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x0070208f6650: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x0070208f6660: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Shadow byte legend (one shadow byte represents 8 application bytes):
  Addressable:           00
  Partially addressable: 01 02 03 04 05 06 07 
  Heap left redzone:       fa
  Freed heap region:       fd
  Stack left redzone:      f1
  Stack mid redzone:       f2
  Stack right redzone:     f3
  Stack after return:      f5
  Stack use after scope:   f8
  Global redzone:          f9
  Global init order:       f6
  Poisoned by user:        f7
  Container overflow:      fc
  Array cookie:            ac
  Intra object redzone:    bb
  ASan internal:           fe
  Left alloca redzone:     ca
  Right alloca redzone:    cb
==13068==ABORTING

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.