Bug#994067: foremost: undefined behavior if option -c is used as last argument
Package: foremost Version: 1.5.7-9.1 Running "foremost -T -c something" results in undefined behavior. First, it calls `fopen()` with NULL as pathname. Second, it uses argv[i] with i > argc. In my case, it tries to read files with pathnames as environment variables. See strace: $ strace --trace=openat foremost -T -c something ... openat(AT_FDCWD, "foremost", O_RDONLY) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "-T", O_RDONLY)= -1 ENOENT (No such file or directory) openat(AT_FDCWD, NULL, O_RDONLY)= -1 EFAULT (Bad address) openat(AT_FDCWD, "SHELL=/bin/bash", O_RDONLY) = -1 ENOENT (No such file or directory) ... This is because the program doesn't check if "-c something" are the last arguments when skipping them at The following patch fixes it: --- a/main.c +++ b/main.c @@ -272,6 +272,9 @@ { /*jump past the conf file so we don't process it.*/ argv+=2; +if (*argv == NULL) { +break; +} } testFile = fopen(*argv, "rb"); if (testFile) --- a/main.c +++ b/main.c @@ -272,6 +272,9 @@ { /*jump past the conf file so we don't process it.*/ argv+=2; + if (*argv == NULL) { +break; + } } testFile = fopen(*argv, "rb"); if (testFile)
Bug#909962: USB DVB-T em28xx Pinnacle not working
Package: linux-image Version: 4.17.0-1-amd64/now 4.17.8-1 With kernel 4.16 I was able to use my USB DVB-T card. I can't with kernel 4.17 on my Debian buster/sid. The demonstration of the problem is pretty obvious from two enclosed files created within a few minutes on the same hardware and Debian only booting one way or another. Don't hesitate to ask me for more information. $ uname -a Linux x201 4.16.0-2-amd64 #1 SMP Debian 4.16.16-2 (2018-06-22) x86_64 GNU/Linux root@x201:~# lsusb Bus 002 Device 003: ID 05c6:9204 Qualcomm, Inc. Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 001 Device 007: ID 17ef:4816 Lenovo Integrated Webcam Bus 001 Device 005: ID 0a5c:217f Broadcom Corp. BCM2045B (BDC-2.1) Bus 001 Device 004: ID 147e:2016 Upek Biometric Touchchip/Touchstrip Fingerprint Sensor Bus 001 Device 010: ID 0951:16b7 Kingston Technology Bus 001 Device 009: ID 045e:0040 Microsoft Corp. Wheel Mouse Optical Bus 001 Device 008: ID 17a0:0001 Samson Technologies Corp. C01U condenser microphone Bus 001 Device 006: ID 2304:0226 Pinnacle Systems, Inc. PCTV 330e Bus 001 Device 003: ID 1a40:0201 Terminus Technology Inc. FE 2.1 7-port Hub Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub root@x201:~# lspci 00:00.0 Host bridge: Intel Corporation Core Processor DRAM Controller (rev 02) 00:02.0 VGA compatible controller: Intel Corporation Core Processor Integrated Graphics Controller (rev 02) 00:16.0 Communication controller: Intel Corporation 5 Series/3400 Series Chipset HECI Controller (rev 06) 00:19.0 Ethernet controller: Intel Corporation 82577LM Gigabit Network Connection (rev 06) 00:1a.0 USB controller: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller (rev 06) 00:1b.0 Audio device: Intel Corporation 5 Series/3400 Series Chipset High Definition Audio (rev 06) 00:1c.0 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 1 (rev 06) 00:1c.3 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 4 (rev 06) 00:1c.4 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 5 (rev 06) 00:1d.0 USB controller: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller (rev 06) 00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev a6) 00:1f.0 ISA bridge: Intel Corporation QM57 Chipset LPC Interface Controller (rev 06) 00:1f.2 SATA controller: Intel Corporation 5 Series/3400 Series Chipset 6 port SATA AHCI Controller (rev 06) 00:1f.3 SMBus: Intel Corporation 5 Series/3400 Series Chipset SMBus Controller (rev 06) 00:1f.6 Signal processing controller: Intel Corporation 5 Series/3400 Series Chipset Thermal Subsystem (rev 06) 02:00.0 Network controller: Intel Corporation Centrino Advanced-N 6200 (rev 35) ff:00.0 Host bridge: Intel Corporation Core Processor QuickPath Architecture Generic Non-core Registers (rev 02) ff:00.1 Host bridge: Intel Corporation Core Processor QuickPath Architecture System Address Decoder (rev 02) ff:02.0 Host bridge: Intel Corporation Core Processor QPI Link 0 (rev 02) ff:02.1 Host bridge: Intel Corporation 1st Generation Core i3/5/7 Processor QPI Physical 0 (rev 02) ff:02.2 Host bridge: Intel Corporation 1st Generation Core i3/5/7 Processor Reserved (rev 02) ff:02.3 Host bridge: Intel Corporation 1st Generation Core i3/5/7 Processor Reserved (rev 02) root@x201:~# lsmod Module Size Used by rfcomm 86016 16 fuse 118784 3 ctr16384 6 ccm20480 9 bnep 24576 2 rc_pinnacle_pctv_hd16384 0 em28xx_rc 20480 0 rc_core49152 3 rc_pinnacle_pctv_hd,em28xx_rc drxd 32768 1 em28xx_dvb 36864 2 dvb_core 139264 1 em28xx_dvb em28xx_alsa24576 1 btusb 53248 0 btrtl 16384 1 btusb snd_usb_audio 221184 1 btbcm 16384 1 btusb btintel24576 1 btusb snd_usbmidi_lib36864 1 snd_usb_audio tuner_xc2028 32768 2 bluetooth 626688 37 btrtl,btintel,bnep,btbcm,rfcomm,btusb snd_rawmidi40960 1 snd_usbmidi_lib tuner 32768 1 snd_seq_device 16384 1 snd_rawmidi tvp515024576 1 em28xx_v4l 53248 0 qcserial 20480 0 usb_wwan 20480 1 qcserial uvcvideo 106496 0 usbserial 53248 2 qcserial,usb_wwan videobuf2_vmalloc 16384 2 uvcvideo,em28xx_v4l videobuf2_memops 16384 1 videobuf2_vmalloc videobuf2_v4l2 28672 2 uvcvideo,em28xx_v4l videobuf2_common 49152 3 uvcvideo,em28xx_v4l,videobuf2_v4l2 drbg 28672 1 ansi_cprng 16384 0
Bug#195459: he revealed terms of the The
National Motorways metalworking sets can chemical UK food polemics -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/debian-bugs-dist
Bug#338354: should think ldquofree
1182447 8615455 135364 5 8835017 0511177 6 3 7 117 50 5 2 0 0 2 2 30 1 6 6 0 2 2 1 3 2 788003 5 0 5 8 2503102 2 5 4 6 0 508605760 7 8 4 8 6 0 7 3 7 2 3 728 3 6 3 2 8 0568862 20 0 4 725 1150535 0135723 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]