AGS Editor

Further development of AGS Editor

Bug Issue: Script Compiler crash if unknown keyword used after "readonly"

Pages: [1]

Crimson Wizard

  • AGSer
  • Posts: 8,541
« on: 08 Aug 2015, 00:09 »
Script compiler accesses wrong memory address and crashes in a very specific case: when you have 2 sequential lines of "readonly" struct members, each of them having a syntax error in one of the keywords following "readonly" keyword.

Script example:
Code: Adventure Game Studio
  1. struct MyStruct
  2. {
  3.   readonly int2 a;
  4.   readonly int2 b;
  5. };
  6.  

Note, both of the member declarations have syntax error in the type names.

Crash happens essentially because the compiler attempts to access an array by index "-1".

sonneveld

  • AGSer
  • Posts: 72
« Reply #1 on: 05 Sep 2015, 03:08 »
« Last Edit: 09 Sep 2015, 00:28 by sonneveld »

Issue updated by Crimson Wizard
« Reply #2 on: 21 Aug 2015, 12:52 »
  • Version changed from AGS 3.3.4 to AGS 3.3.5

Issue updated by Crimson Wizard
« Reply #3 on: 25 Jan 2016, 14:48 »
  • Fixed Version changed from (none) to AGS 3.3.5
  • Status changed from New to Resolved

Issue updated by Crimson Wizard
« Reply #4 on: 21 Jan 2018, 07:21 »
  • Status changed from Resolved to Closed

Pages: [1]

Issue Details

  • Reported
    08 Aug 2015, 00:09
  • Updated
    21 Jan 2018, 07:21
  • View Status
    Public
  • Type
    Bug
  • Status
    Closed
  • Priority
    Normal
  • Version
    AGS 3.3.5
  • Fixed in
    AGS 3.3.5
  • Assigned to
    (none)
  • Category
    Script Compiler

Tags



Powered by: SMF Project Tools 0.5.4 © Niko Pahajoki 2007-2011