Logo white

OpenSystemsDevelopment / qpdf

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • Commits 4,691
  • Compare
  • Branches 1
  • Tags 0
  • qpdf
  • libqpdf
  • QUtil.cc
14 Jan, 2020
2 commits
  • Pull wmain -> main code from qpdf.cc into QUtil.cc
    a44b5a34
    Jay Berkenbilt authored
    2020-01-14 11:40:51 -0500  
    Browse File »
  • Add error detection for read_lines_from_file(FILE*)
    ab4061f1
    Jay Berkenbilt authored
    2020-01-14 11:07:09 -0500  
    Browse File »

13 Jan, 2020
2 commits
  • QUtil::read_lines_from_file: optional EOL preservation
    211a7f57
    Jay Berkenbilt authored
    2020-01-13 11:26:18 -0500  
    Browse File »
  • Refactor QUtil::read_lines_from_file ...
    9a398504
    This commit adds the preserve_eol flags but doesn't implement EOL
    preservation yet.
    Jay Berkenbilt authored
    2020-01-13 09:19:53 -0500  
    Browse File »

09 Nov, 2019
1 commit
  • Allow odd/even modifiers in numeric range (fixes #364)
    c4478e52
    Jay Berkenbilt authored
    2019-11-09 13:23:12 -0500  
    Browse File »

31 Aug, 2019
1 commit
  • Add remove_file and rename_file to QUtil
    4fa7b1eb
    Jay Berkenbilt authored
    2019-08-31 15:51:04 -0400  
    Browse File »

22 Jun, 2019
2 commits
  • In shippable code, favor smart pointers (fixes #235) ...
    6c39aa87
    Use PointerHolder in several places where manually memory allocation
    and deallocation were being used. This helps to protect against memory
    leaks when exceptions are thrown in surprising places.
    Jay Berkenbilt authored
    2019-06-22 16:57:52 -0400  
    Browse File »
  • Add QUtil::read_file_into_memory ...
    1bde5c68
    This code was essentially duplicated between test_driver and
    standalone_fuzz_target_runner.
    Jay Berkenbilt authored
    2019-06-22 10:14:25 -0400  
    Browse File »

21 Jun, 2019
4 commits
  • Rename QUtil::strcasecmp to QUtil::str_compare_nocase (fixes #242)
    c6cfd645
    Jay Berkenbilt authored
    2019-06-21 22:29:31 -0400  
    Browse File »
  • Fix bounds error in utf16_to_utf8 conversion
    a35d4ce9
    Jay Berkenbilt authored
    2019-06-21 17:40:24 -0400  
    Browse File »
  • Fix sign and conversion warnings (major) ...
    d71f05ca
    This makes all integer type conversions that have potential data loss
    explicit with calls that do range checks and raise an exception. After
    this commit, qpdf builds with no warnings when -Wsign-conversion
    -Wconversion is used with gcc or clang or when -W3 -Wd4800 is used
    with MSVC. This significantly reduces the likelihood of potential
    crashes from bogus integer values.
    
    There are some parts of the code that take int when they should take
    size_t or an offset. Such places would make qpdf not support files
    with more than 2^31 of something that usually wouldn't be so large. In
    the event that such a file shows up and is valid, at least qpdf would
    raise an error in the right spot so the issue could be legitimately
    addressed rather than failing in some weird way because of a silent
    overflow condition.
    Jay Berkenbilt authored
    2019-06-21 13:17:21 -0400  
    Browse File »
  • QUtil: add unsigned int/string functions
    42306e2f
    Jay Berkenbilt authored
    2019-06-21 13:17:21 -0400  
    Browse File »

16 May, 2019
1 commit
  • Fix Windows memory error (fixes #330)
    b3f0dbff
    Jay Berkenbilt authored
    2019-05-16 14:26:51 -0400  
    Browse File »

20 Apr, 2019
1 commit
  • Support Unicode in filenames (fixes #298)
    011695df
    Jay Berkenbilt authored
    2019-04-20 21:00:43 -0400  
    Browse File »

11 Mar, 2019
1 commit
  • "_setmode" and "_stricmp" are not available on Borland C++Builder, neither the c… ...
    71b7ed9f
    …lassic one nor newer ones based on CLANG.
    Thorsten Schöning authored
    2019-03-11 16:58:55 -0400  
    Browse File »

17 Jan, 2019
5 commits
  • Add QUtil::possible_repaired_encodings
    e87d1499
    Jay Berkenbilt authored
    2019-01-17 11:43:56 -0500  
    Browse File »
  • Add status-reporting transcoders to QUtil
    46303777
    Jay Berkenbilt authored
    2019-01-17 11:43:56 -0500  
    Browse File »
  • QUtil::analyze_encoding
    8f389f14
    Jay Berkenbilt authored
    2019-01-17 11:43:56 -0500  
    Browse File »
  • Bidirectional transcoding for win, mac, pdf, utf8, utf16
    6817ca58
    Jay Berkenbilt authored
    2019-01-17 11:43:56 -0500  
    Browse File »
  • Move remaining existing transcoding to QUtil
    69848546
    Jay Berkenbilt authored
    2019-01-17 11:43:56 -0500  
    Browse File »

10 Jan, 2019
1 commit
  • Add configure option AVOID_WINDOWS_HANDLE ...
    4ecd1df6
    If set, we avoid using Windows I/O HANDLE, which is disallowed in some
    versions of the Windows SDK, such as for Windows phones.
    QUtil::same_file will always return false in this case. Only applies
    to Windows builds.
    Jay Berkenbilt authored
    2019-01-10 22:35:08 -0500  
    Browse File »

05 Jan, 2019
3 commits
  • Add WinAnsi and MacRoman encoding
    b341d742
    Jay Berkenbilt authored
    2019-01-05 23:01:44 -0500  
    Browse File »
  • Refactor QUtil::utf8_to_ascii
    3ef1b773
    Jay Berkenbilt authored
    2019-01-05 22:59:29 -0500  
    Browse File »
  • Move utf8_to_utf16 into QUtil
    089ce590
    Jay Berkenbilt authored
    2019-01-05 22:59:27 -0500  
    Browse File »

03 Jan, 2019
1 commit
  • Add QUtil::utf8_to_ascii
    02281632
    Jay Berkenbilt authored
    2019-01-03 23:18:13 -0500  
    Browse File »

21 Dec, 2018
1 commit
  • Move numrange code from qpdf.cc to QUtil.cc ...
    fa366435
    Also move tests to libtests.
    Jay Berkenbilt authored
    2018-12-21 19:11:57 -0500  
    Browse File »

13 Aug, 2018
1 commit
  • New exception class QPDFSystemError (fixes #221)
    b4bdc42b
    Jay Berkenbilt authored
    2018-08-13 20:01:51 -0400  
    Browse File »

21 Jun, 2018
1 commit
  • QUtil::toUTF16
    e44c395c
    Jay Berkenbilt authored
    2018-06-21 15:57:13 -0400  
    Browse File »

04 Feb, 2018
1 commit
  • Fix setLineBuf for bsd (fixes #177) ...
    3b2a3cdd
    Use 0 instead of NULL in a cast.
    Jay Berkenbilt authored
    2018-02-04 14:19:00 -0500  
    Browse File »

14 Jan, 2018
2 commits
  • Fixes for clang
    04e47dea
    Jay Berkenbilt authored
    2018-01-14 19:18:04 -0500  
    Browse File »
  • Add QUtil::hex_decode
    3e306ae6
    Jay Berkenbilt authored
    2018-01-14 09:04:13 -0500  
    Browse File »

13 Jan, 2018
1 commit
  • Allow trailing . in numeric token (fixes #165)
    791e0db7
    Jay Berkenbilt authored
    2018-01-13 20:05:40 -0500  
    Browse File »

29 Aug, 2017
1 commit
  • Detect integer overflow/underflow
    6d46346e
    Jay Berkenbilt authored
    2017-08-29 12:28:32 -0400  
    Browse File »

10 Aug, 2017
1 commit
  • Find xref without PCRE
    3082e4e6
    Jay Berkenbilt authored
    2017-08-10 21:30:32 -0400  
    Browse File »

05 Aug, 2017
1 commit
  • QUtil::strcasecmp
    8fe261d8
    Jay Berkenbilt authored
    2017-08-05 10:22:33 -0400  
    Browse File »

29 Jul, 2017
2 commits
  • Allow reading command-line args from files (fixes #16)
    2d5b8544
    Jay Berkenbilt authored
    2017-07-29 22:23:21 -0400  
    Browse File »
  • Detect input file = output file (fixes #29)
    5993c3e8
    Jay Berkenbilt authored
    2017-07-29 20:58:01 -0400  
    Browse File »

27 Jul, 2017
1 commit
  • Move lexer helper functions to QUtil
    dd8dad74
    Jay Berkenbilt authored
    2017-07-27 13:59:56 -0400  
    Browse File »

26 Jul, 2017
1 commit
  • Make windows includes lowercase (fixes #123) ...
    8740b380
    For cross compiling.
    slurdge authored
    2017-07-26 06:39:09 -0400  
    Browse File »

24 Jan, 2016
1 commit
  • C++-Builder supports 64 Bit file functions ...
    b3c08f4f
    The 64 Bit file functions are supported by C++-Builder as well and
    need to be used, else fseek will error out on larger files than 4 GB
    like used in the large file test.
    Thorsten Schöning authored
    2016-01-24 12:07:20 -0500  
    Browse File »