Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 160591 - dev-libs/tvision-2.1.0-pre1 buffer underflow in ttermina.cc
Summary: dev-libs/tvision-2.1.0-pre1 buffer underflow in ttermina.cc
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-06 23:30 UTC by B Douglas Hilton
Modified: 2007-01-12 15:38 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description B Douglas Hilton 2007-01-06 23:30:55 UTC
diff -upr tvision-2.1.0_pre1/work/tvision/classes/ttermina.cc tvision-2.1.0_pre1-r1/work/tvision/classes/ttermina.cc
--- tvision-2.1.0_pre1/work/tvision/classes/ttermina.cc 2003-04-22 10:47:20.000000000 -0400
+++ tvision-2.1.0_pre1-r1/work/tvision/classes/ttermina.cc      2007-01-06 18:20:14.000000000 -0500
@@ -233,7 +233,8 @@ uint32 TTerminal::prevLines(uint32 posSt
          }
       }
    }
- while (pos-->=queBack);
+ // fixed a buffer underflow bug here - Doug
+ while (pos-->queBack);
 
  return queBack;
 }
Comment 1 Harald van Dijk (RETIRED) gentoo-dev 2007-01-12 15:38:41 UTC
Fixed, along with a bump to the more recent snapshot and a fix for recent kernel headers. Thanks for the report.