Ticket #41 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

CrystalFontz CF635 : Buffer overflow after initialisation of layout

Reported by: info@…> Owned by: michael
Priority: highest Component: lcd4linux
Version: Severity: blocker
Keywords: Cc:

Description

Dear Sir,

I have a Suse 10.1 x86_64. I have a buffer overflow message when I do a lcd4linux -Fvvq with my CF635.

Please have a look to the dump bellow. Any idea?

Many thanks Hervé Display CF635 {

Icons 1 Driver 'Crystalfontz' Model '635' Port '/dev/ttyUSB0' Speed 115200 Contrast 16 Backlight 50

} Layout DefaultCF635 {

Row1 {

Col1 'OS'

} Row2 {

Col1 'CPU' Col10 'RAM'

} Row3 {

Col1 'Busy' Col10 'Rain' Col11 'BusyBar?'

} Row4 {

Col1 'Load' Col11 'LoadBar?'

}

}

solar:/home/root # lcd4linux -Fvvq

Version 0.10.1-CVS starting

plugin_cfg.c: Variable minute = '60000' (60000)

plugin_cfg.c: Variable tack = '100' (100)

plugin_cfg.c: Variable tick = '500' (500)

lcd4linux.c: initializing driver Crystalfontz

Crystalfontz: $Revision: 1.42 $

Crystalfontz: using model '635'

Crystalfontz: using port '/dev/ttyUSB0' at 115200 baud

removing stale lockfile /var/lock/LCK..ttyUSB0

Crystalfontz: display identifies itself as 'CFA635:h1.0,v1.4'

Crystalfontz: display type 'CFA635', hardware version 1.0, firmware version v1.4

Crystalfontz: reserving 1 of 8 user-defined characters for icons

Crystalfontz: using 4 GPI's and 12 GPO's

initializing layout 'DefaultCF635'

lcd4linux.c: starting main loop

*** buffer overflow detected ***: lcd4linux terminated

======= Backtrace: =========

/lib64/libc.so.6(chk_fail+0x2f)[0x2b5668038ebf]

lcd4linux[0x40f1e8]

lcd4linux[0x40f5d3]

lcd4linux[0x41fb7a]

lcd4linux[0x4097d5]

lcd4linux[0x40525c]

/lib64/libc.so.6(libc_start_main+0xf4)[0x2b5667f85154]

lcd4linux[0x404a79]

...

Attachments

Galmiche Suse10.1 CF635 buffer overflow.txt (5.2 kB) - added by anonymous 2 years ago.
Log of the error

Change History

Changed 2 years ago by anonymous

Log of the error

Changed 2 years ago by info@…>

Dear Sir,

I've found this ticket, that I applyed:

Ticket #37 (closed defect: fixed) O Description unsigned char buffer[22] needs to be at least 24

Now I want to compile once again the source 0.10.0 . I downloaded it from the source link. I do

./configure

make

and I get an I2C error message after some correct lines:

gcc -DHAVE_CONFIG_H -I. -I. -I. -D_GNU_SOURCE -Wall -W -g -O2 -c

drv_generic_i2c.c

In file included from drv_generic_i2c.c:76:

lcd4linux_i2c.h:81: error: array type has incomplete element type

make: *** [drv_generic_i2c.o] Error 1

Any idea?

Thanks Hervé

Changed 2 years ago by Galmiche

Dear All,

The solution , to extend buffer size, described before is ok. SO I downloaded the latest CVS and compiled it ok. All is fine. Please CANCEL This ticket

Thanks Hervé

Changed 2 years ago by michael

  • status changed from new to closed
  • resolution set to fixed

Add/Change #41 (CrystalFontz CF635 : Buffer overflow after initialisation of layout)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.