Project

General

Profile

Bug #610

Path construction issue.

Added by Renzo Kuken 4 months ago. Updated 3 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
2018-02-23
Due date:
% Done:

100%

Patch Available:
Found in Versions:
Confirmed:
No
Branch:
Security:
Help Needed:

Description

This probably leaks some memory.

  1. strace -f -e open,access src/bip -f /home/renzokuken/bip.conf.test -n -s /var/lib/tiret_qsdf
    access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
    access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
    open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
    access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
    open("/usr/lib/x86_64-linux-gnu/libssl.so.1.0.0", O_RDONLY|O_CLOEXEC) = 3
    access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
    open("/usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0", O_RDONLY|O_CLOEXEC) = 3
    access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
    open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
    access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
    open("/lib/x86_64-linux-gnu/libdl.so.2", O_RDONLY|O_CLOEXEC) = 3
    open("/home/renzokuken/bip.conf.test", O_RDONLY) = 3
    open("/etc/bip/bip.pem", O_RDONLY) = 3
    open("/etc/localtime", O_RDONLY|O_CLOEXEC) = 3
    23-02-2018 11:48:18 Using default DH parameters: /var/lib/tiret_qsdf/dh.pem
    open("*/var/lib/tiret_qsdf/\315Udh.pem*", O_RDONLY) = -1 ENOENT (No such file or directory)
    23-02-2018 11:48:18 FATAL: Unable to open file /var/lib/tiret_qsdf/dh.pem for reading
    ++ exited with 200 ++

I re-run right away:

  1. strace -f -e open,access src/bip -f /home/renzokuken/bip.conf.test -n -s /var/lib/tiret_qsdf
    access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
    access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
    open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
    access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
    open("/usr/lib/x86_64-linux-gnu/libssl.so.1.0.0", O_RDONLY|O_CLOEXEC) = 3
    access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
    open("/usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0", O_RDONLY|O_CLOEXEC) = 3
    access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
    open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
    access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
    open("/lib/x86_64-linux-gnu/libdl.so.2", O_RDONLY|O_CLOEXEC) = 3
    open("/home/renzokuken/bip.conf.test", O_RDONLY) = 3
    open("/etc/bip/bip.pem", O_RDONLY) = 3
    open("/etc/localtime", O_RDONLY|O_CLOEXEC) = 3
    23-02-2018 11:49:55 Using default DH parameters: /var/lib/tiret_qsdf/Udh.pem
    open("*/var/lib/tiret_qsdf/\254Udh.pem*", O_RDONLY) = -1 ENOENT (No such file or directory)
    23-02-2018 11:49:55 FATAL: Unable to open file /var/lib/tiret_qsdf/Udh.pem for reading
    ++ exited with 200 ++

Everything is fine if the path passed to -f doesn't contain any _ or -

Associated revisions

Revision 348737fa (diff)
Added by Pierre-Louis Bonicoli 3 months ago

Fix path construction

Thanks to Renzokuken for pointing that !
Closes #610

History

#1 Updated by Anonymous 3 months ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Also available in: Atom PDF