Am 30.11.2012 11:32, schrieb Gerald Dachs:
> Am 2012-11-30 10:17, schrieb Lars Hanisch:
>> Looks like the pointer returned by sscanf is not valid:
>>
>> 32: bool tComponent::FromString(const char *s)
>> 33: {
>> 34: unsigned int Stream, Type;
>> 35: int n = sscanf(s, "%X %02X %7s %a[^\n]", &St
Hi,
On Fri, Nov 30, Dr. Werner Fink wrote:
> Maybe some more checks are required as if n != 4 this could be that one of the
> variables are not used and therefore not initialized.
>
> Before sscanf() this could be a `memset(language, 0, sizeof(language));' or
> more
> simple a `*language = 0;'
On Fri, Nov 30, 2012 at 12:08:53PM +0100, Dieter Bloms wrote:
> Hi Werner,
>
> --snip--
> 25 cString tComponent::ToString(void)
> 26 {
> 27 char buffer[256];
> 28 snprintf(buffer, sizeof(buffer), "%X %02X %s %s", stream, type,
> language, description ? description : "");
> 29 retu
Hi Werner,
On Fri, Nov 30, Dr. Werner Fink wrote:
> On Fri, Nov 30, 2012 at 11:00:52AM +0100, Dieter Bloms wrote:
> >
> > I changed it this way:
> >
> > --snip--
> > 32 bool tComponent::FromString(const char *s)
> > 33 {
> > 34 unsigned int Stream, Type;
> > 35 description = NULL;
>
On Fri, Nov 30, 2012 at 11:31 AM, Dieter Bloms wrote:
> Hi,
>
> On Fri, Nov 30, sundararaj reel wrote:
>
> > %a to print a char* is not right. char* is interpreted as double (see the
> > compiler warning) . If you want to print the pointer 'description', then
> > use %p.
>
> with "esyslog("dbloms
On Fri, Nov 30, 2012 at 11:00:52AM +0100, Dieter Bloms wrote:
>
> I changed it this way:
>
> --snip--
> 32 bool tComponent::FromString(const char *s)
> 33 {
> 34 unsigned int Stream, Type;
> 35 description = NULL;
> 36 int n = sscanf(s, "%X %02X %7s %a[^\n]", &Stream, &Type, langu
Am 2012-11-30 10:17, schrieb Lars Hanisch:
Looks like the pointer returned by sscanf is not valid:
32: bool tComponent::FromString(const char *s)
33: {
34: unsigned int Stream, Type;
35: int n = sscanf(s, "%X %02X %7s %a[^\n]", &Stream, &Type,
language, &description); // 7 = MAXLANGCODE2 -
Hi,
On Fri, Nov 30, sundararaj reel wrote:
> %a to print a char* is not right. char* is interpreted as double (see the
> compiler warning) . If you want to print the pointer 'description', then
> use %p.
with "esyslog("dbloms: \"%X\" \"%02X\" \"%7s\" \"%p\"", Stream, Type, language,
description
On Fri, Nov 30, 2012 at 11:00 AM, Dieter Bloms wrote:
>
> --snip--
> g++ -g -O3 -Wall -Werror=overloaded-virtual -Wno-parentheses -c
> -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
> -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
> -DVDR_USER=\"root\" -DLIRC_D
Hi Lars,
thank you for the help!
On Fri, Nov 30, Lars Hanisch wrote:
> 32: bool tComponent::FromString(const char *s)
> 33: {
> 34: unsigned int Stream, Type;
> 35: int n = sscanf(s, "%X %02X %7s %a[^\n]", &Stream, &Type, language,
> &description); // 7 = MAXLANGCODE2 - 1
> 36: if (n != 4
Hi,
Am 29.11.2012 16:17, schrieb Dieter Bloms:
> Hello,
>
> I've compiled vdr on alpinelinux 2.5.0 and get a segfault during
> start of vdr.
> Even without plugins I get this segfault (I didn't apply any patch to
> vdr sources).
> Vdr was started with the command:
>
> /usr/local/bin/vdr --config
Hi,
On Thu, Nov 29, Dominic Evans wrote:
> On 29 November 2012 15:17, Dieter Bloms wrote:
> > does anybody see what is wrong here ?
>
> Your choice of recording? ;)
>
> > #6 0x004eb4e3 in cRecording::cRecording (this=0x2e2c650,
> > FileName=0x2e4c15c "Sex_and_the_City_2/2012-11-19.20
On 29 November 2012 15:17, Dieter Bloms wrote:
> does anybody see what is wrong here ?
Your choice of recording? ;)
> #6 0x004eb4e3 in cRecording::cRecording (this=0x2e2c650,
> FileName=0x2e4c15c "Sex_and_the_City_2/2012-11-19.20.10.27-0.rec") at
> recording.c:723
___
Hello,
I've compiled vdr on alpinelinux 2.5.0 and get a segfault during
start of vdr.
Even without plugins I get this segfault (I didn't apply any patch to
vdr sources).
Vdr was started with the command:
/usr/local/bin/vdr --config=/etc/vdr --epgfile=/tmp/epg.data --grab=/dev/shm
--log=3.1 --mut
14 matches
Mail list logo