diff options
author | Strangerke | 2013-04-18 07:57:26 +0200 |
---|---|---|
committer | Strangerke | 2013-04-18 07:57:26 +0200 |
commit | 0aa028c3f14ae97f2bea6e2ca21ad987833e9eac (patch) | |
tree | 35fac33e02a83d02f524048e54f54c38649940eb /engines/cge | |
parent | 430db6719f2bdded9428932c858db810d291b12b (diff) | |
download | scummvm-rg350-0aa028c3f14ae97f2bea6e2ca21ad987833e9eac.tar.gz scummvm-rg350-0aa028c3f14ae97f2bea6e2ca21ad987833e9eac.tar.bz2 scummvm-rg350-0aa028c3f14ae97f2bea6e2ca21ad987833e9eac.zip |
CGE: Add safeguard in expand()
Diffstat (limited to 'engines/cge')
-rw-r--r-- | engines/cge/vga13h.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/cge/vga13h.cpp b/engines/cge/vga13h.cpp index e178795b7c..56a0754527 100644 --- a/engines/cge/vga13h.cpp +++ b/engines/cge/vga13h.cpp @@ -214,6 +214,7 @@ Sprite *Sprite::expand() { for (line = sprf.readLine(); !sprf.eos(); line = sprf.readLine()) { len = line.size(); + assert(len <= 513); strcpy(tmpStr, line.c_str()); lcnt++; if (len == 0 || *tmpStr == '.') |