Package: cssc
Version: 1.4.1-1
Severity: normal

Dear Maintainer,

   * What led up to the situation?

We found that the %M% SCCS keyword in some of our files was not being correctly
interpolated.

   * What exactly did you do (or not do) that was effective (or
     ineffective)?

Did a "get" on a file called s.xxxx_xxxxxxxxx-xx

   * What was the outcome of this action?

In the created file xxxx_xxxxxxxxx-xx the %M% keyword was replaced by an
empty string instead of the module name xxxx_xxxxxxxxx-xx

   * What outcome did you expect instead?

That %M% be replaced by xxxx_xxxxxxxxx-xx

This used to work with older versions of cssc.

I have tried running "get" under valgrind and was surprised to see "Invalid
read" errors:

$ valgrind /usr/lib/x86_64-linux-gnu/cssc/get -t "SCCS/s.xxxx_xxxxxxxxx-xx"
==24638== Memcheck, a memory error detector
==24638== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==24638== Using Valgrind-3.14.0 and LibVEX; rerun with -h for copyright info
==24638== Command: /usr/lib/x86_64-linux-gnu/cssc/get -t 
SCCS/s.xxxx_xxxxxxxxx-xx
==24638== 
==24638== Invalid read of size 1
==24638==    at 0x4838CC2: __strlen_sse2 (in 
/usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==24638==    by 0x4BF84A4: fputs (iofputs.c:33)
==24638==    by 0x111F27: ??? (in /usr/lib/x86_64-linux-gnu/cssc/get)
==24638==    by 0x112057: ??? (in /usr/lib/x86_64-linux-gnu/cssc/get)
==24638==    by 0x110EF0: ??? (in /usr/lib/x86_64-linux-gnu/cssc/get)
==24638==    by 0x10FBD0: ??? (in /usr/lib/x86_64-linux-gnu/cssc/get)
==24638==    by 0x10CBAA: ??? (in /usr/lib/x86_64-linux-gnu/cssc/get)
==24638==    by 0x4BAC09A: (below main) (libc-start.c:308)
==24638==  Address 0x4d685a0 is 0 bytes inside a block of size 18 free'd
==24638==    at 0x4836EAB: operator delete(void*) (in 
/usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==24638==    by 0x111F1C: ??? (in /usr/lib/x86_64-linux-gnu/cssc/get)
==24638==    by 0x112057: ??? (in /usr/lib/x86_64-linux-gnu/cssc/get)
==24638==    by 0x110EF0: ??? (in /usr/lib/x86_64-linux-gnu/cssc/get)
==24638==    by 0x10FBD0: ??? (in /usr/lib/x86_64-linux-gnu/cssc/get)
==24638==    by 0x10CBAA: ??? (in /usr/lib/x86_64-linux-gnu/cssc/get)
==24638==    by 0x4BAC09A: (below main) (libc-start.c:308)
==24638==  Block was alloc'd at
==24638==    at 0x4835DEF: operator new(unsigned long) (in 
/usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==24638==    by 0x10E56C: void std::__cxx11::basic_string<char, 
std::char_traits<char>, std::allocator<char> >::_M_construct<char*>(char*, 
char*, std::forward_iterator_tag) (in /usr/lib/x86_64-linux-gnu/cssc/get)
==24638==    by 0x114165: ??? (in /usr/lib/x86_64-linux-gnu/cssc/get)
==24638==    by 0x111F05: ??? (in /usr/lib/x86_64-linux-gnu/cssc/get)
==24638==    by 0x112057: ??? (in /usr/lib/x86_64-linux-gnu/cssc/get)
==24638==    by 0x110EF0: ??? (in /usr/lib/x86_64-linux-gnu/cssc/get)
==24638==    by 0x10FBD0: ??? (in /usr/lib/x86_64-linux-gnu/cssc/get)
==24638==    by 0x10CBAA: ??? (in /usr/lib/x86_64-linux-gnu/cssc/get)
==24638==    by 0x4BAC09A: (below main) (libc-start.c:308)
==24638== 



-- System Information:
Debian Release: 11.1
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.10.0-8-amd64 (SMP w/4 CPU threads)
Kernel taint flags: TAINT_WARN
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages cssc depends on:
ii  libc6                2.31-13+deb11u2
ii  libgcc-s1 [libgcc1]  10.2.1-6
ii  libstdc++6           10.2.1-6

cssc recommends no packages.

Versions of packages cssc suggests:
pn  groff  <none>

-- no debconf information

Reply via email to