aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* estream: Skip the read-only stream when IN_ATEXIT is true.HEADmasterNIIBE Yutaka3 days1-1/+4
| | | | | | | | | * src/estream.c (_gpgrt_fflush): Skip the read-only stream. -- GnuPG-bug-id: 8518 Signed-off-by: NIIBE Yutaka <[email protected]>
* Fix gpgrt_ftrylockfile.NIIBE Yutaka3 days1-1/+1
| | | | | | | | | * src/estream.c (trylock_stream): Return 0 on success, -1 on error. -- GnuPG-bug-id: 8519 Signed-off-by: NIIBE Yutaka <[email protected]>
* GPGRT_HAVE_PRAGMA_GCC_PUSH now also covers diagnostic push.Werner Koch2026-09-141-2/+3
| | | | | | | | | * src/gpg-error.h.in: Redefine GPGRT_HAVE_PRAGMA_GCC_PUSH -- The old definition only covered push_option which is available since gcc 4.4 (released 2009). The new definition also covers the diagnostic push pragma which was introduced with 4.6 (released 2011).
* build: Add an entry for gnulib-common.m4.NIIBE Yutaka2026-09-071-4/+4
| | | | | | | | * m4/Makefile.am (EXTRA_DIST): Add gnulib-common.m4. -- Signed-off-by: NIIBE Yutaka <[email protected]>
* m4: Detect GNU Hurd thread feature correctly.NIIBE Yutaka2026-09-031-0/+15
| | | | | | | | | | | * m4/threadlib.m4: Detect gl_pthread_in_glibc on Hurd with GNU C library >= 2.43. -- GnuPG-bug-id: 8430 Co-authored-by: Samuel Thibault <[email protected]> Signed-off-by: NIIBE Yutaka <[email protected]>
* build: Update threadlib from gnulib.NIIBE Yutaka2026-09-012-246/+2094
| | | | | | | | | * m4/threadlib.m4: Update. * m4/gnulib-common.m4: New for gl_CHECK_FUNCS_ANDROID. -- Signed-off-by: NIIBE Yutaka <[email protected]>
* tests: Fix gpgrt_bsprintf test for PowerPC 32.NIIBE Yutaka2026-08-261-1/+1
| | | | | | | | | | * tests/t-printf.c (check_large_float): Use _ARCH_PPC to identify Power architecture, both of 32-bit and 64-bit. -- Fixes-commit: 9cc750a816554e46d3e1496533f927b17ef3fcef Signed-off-by: NIIBE Yutaka <[email protected]>
* tests: Fix gpgrt_bsprintf test for PowerPC 64.NIIBE Yutaka2026-07-301-2/+5
| | | | | | | | | | * tests/t-printf.c (check_large_float): Skip the test when it's IBM double-double. -- Reported-by: C. Neidahl Signed-off-by: NIIBE Yutaka <[email protected]>
* doc: some comment updatesWerner Koch2026-07-103-0/+11
| | | | --
* po: Update Portuguese Translation.Daniel Cerqueira2026-07-101-11/+6
| | | | Signed-off-by: Daniel Cerqueira <[email protected]>
* tests: Skip a test when !HAVE_LONG_DOUBLE_WIDER.NIIBE Yutaka2026-06-252-1/+7
| | | | | | | | | | | * configure.ac (AC_TYPE_LONG_DOUBLE_WIDER): New. * tests/t-printf.c (check_large_float): Fix a typo. [!HAVE_LONG_DOUBLE_WIDER]: Skip the LDBL_MAX test. -- GnuPG-bug-id: 8309 Signed-off-by: NIIBE Yutaka <[email protected]>
* w32: New function gpgrt_w32_set_errno.Werner Koch2026-06-247-3/+33
| | | | | | | | | | | | | | * src/visibility.c (gpgrt_w32_set_errno): New. * src/w32-add.h: Add function. * src/gpg-error.def.in: Ditto. * src/estream.c (_gpgrt_w32_set_errno): Return the windows error code. * src/gpg-error.c (main): Add CMD_MAPW32ERR with name "mapw32err" and implement it. -- We use various mappings from Windows Error codes to ERRNO and thus to gpg-error. it is better to eventuially have one central place for such mappings.
* build: No use of awk with gen-lock-obj.sh.NIIBE Yutaka2026-06-232-20/+15
| | | | | | | | | | | | * configure.ac: For invocation of gen-lock-obj.sh, use NM instead of OBJDUMP, use no AWK. * src/gen-lock-obj.sh: Use NM with option -P and -t d for portable output in decimal. No use of AWK, simply use cut. -- Signed-off-by: Alexis Lothoré <[email protected]> Signed-off-by: NIIBE Yutaka <[email protected]>
* Fix bug reference for the 1.61 releaseWerner Koch2026-05-071-1/+1
| | | | | -- GnuPG-bug-id: 8242
* Post release updatesWerner Koch2026-05-072-1/+8
| | | | --
* Release 1.61libgpg-error-1.61gpgrt-1.61Werner Koch2026-05-072-2/+11
|
* Revert "Fix possible lockup in an atexit handler"Werner Koch2026-05-031-12/+15
| | | | | | | | | | | * src/estream.c (_gpgrt_fflush): Do not use the in_atexit flag. -- We need to research how we can better handle atexit handlers and stream locking; in particilar for stdout and stderr. For now we keep the code but disable it. Fixes-commit: 50f0c56bdd36f7f709a62503942ac55399dafb9c
* Fix possible lockup in an atexit handlerWerner Koch2026-04-305-9/+24
| | | | | | | | | | | * src/estream.c (_gpgrt_fflush): Add arg in_atexit and skip the flush in this mode if the lock can not be taken. Change all callers. -- The problem should up with gpgsm encryption on the standard mode and a no public key error. In this case the process got stuck in the atexit handler after a FAILURE gpgsm-exit status line to stderr. It is better not to have a hanging process than having flushed everything.
* Fix possible stack overflow in es_printf for %.100f format.Werner Koch2026-04-294-4/+96
| | | | | | | | | | | | | | | | * configure.ac: Add test for snprintf. * src/gpgrt-int.h: Do not re-map snprintf if KEEP_SYSTEM_SNPRINTF is defined. * src/estream-printf.c (KEEP_SYSTEM_SNPRINTF): Define. (pr_float): Increase static buffer size. Use snprintf for long double. * tests/t-printf.c: Include float.h. (check_large_float): New. -- GnuPG-bug-id: 8240 Reported-by: Dirk Mueller <[email protected]> (AI)
* Fix out-of-bounds read in vfnameconcat.Werner Koch2026-04-281-3/+4
| | | | | | | | * src/stringutils.c (_gpgrt_vfnameconcat): Use the correct value for the trailing slash check. -- Reported-by: Dirk Mueller <[email protected]> (AI)
* po: Update Japanese Translation.NIIBE Yutaka2026-04-281-12/+6
| | | | | | -- Signed-off-by: NIIBE Yutaka <[email protected]>
* po: update Polish translationJakub Bogusz2026-04-271-39/+31
|
* build: Add cross compile support for wasm*-*-emscripten target.NIIBE Yutaka2026-04-271-1/+1
| | | | | | | | | | * configure.ac: Add wasm*-*-emscripten target to generate lock-obj-pub.native.h. -- Reported-by: Clément Péron <[email protected]> Signed-off-by: NIIBE Yutaka <[email protected]>
* Post release updatesWerner Koch2026-04-242-1/+8
| | | | --
* Release 1.60libgpg-error-1.60gpgrt-1.60Werner Koch2026-04-242-4/+6
|
* po: msgmergeWerner Koch2026-04-2421-2/+301
| | | | --
* po: Update German translationWerner Koch2026-04-241-1/+11
| | | | --
* build:cross: Remove section name to dump.NIIBE Yutaka2026-04-141-1/+1
| | | | | | | | | | * src/gen-lock-obj.sh: Don't specify section name. -- It may be .bss.mtx depending to a toolchain. Signed-off-by: NIIBE Yutaka <[email protected]>
* autogen.sh: fixed typom2026-03-251-1/+1
|
* spawn:w32: Fix use-after-scope of handle array.Mikhail Filippov2026-03-171-1/+1
| | | | | | * src/spawn-w32.c (_gpgrt_process_spawn): Move the hd[32] array declaration from inside the inner block to the function scope, so that the array remains live when CreateProcessW is called.
* build: Revert pkg-config requirement.Sachin T2026-03-042-19/+1
| | | | | | | | | * configure.ac: Don't use PKG_CHECK_MODULES. * src/Makefile.am (mkheader): Remove EXTRA_LIBS_FOR_BUILD. -- Signed-off-by: Sachin T <[email protected]>
* build: Put a work-around for AC_LIB_PROG_LD issue.NIIBE Yutaka2026-03-031-0/+3
| | | | | | | | | | | | * m4/libtool.m4 (AC_LIB_PROG_LD): Define here. -- This is local solution. It should be handled by the upstream, Gnulib and libtool. GnuPG-bug-id: 7677 Signed-off-by: NIIBE Yutaka <[email protected]>
* build: Fix m4/Makefile.am.NIIBE Yutaka2026-03-031-4/+11
| | | | | | | | | | * m4/Makefile.am: Update. -- Mention the upstreams. Signed-off-by: NIIBE Yutaka <[email protected]>
* build: Add forgotten m4 file for gettext.NIIBE Yutaka2026-03-032-0/+72
| | | | | | | | | * m4/intlmacosx.m4: New. * m4/Makefile.am: Update. -- Signed-off-by: NIIBE Yutaka <[email protected]>
* New error codes for algorithm complianceWerner Koch2026-03-024-3/+36
| | | | | | | -- This will help to implement GnuPG-bug-id: 6644
* w32:estream: Use INVALID_SOCKET to check invalid socket.NIIBE Yutaka2026-02-261-4/+5
| | | | | | | | | | | | | * src/estream.c (IS_INVALID_SOCKET): New. (func_sock_read, func_sock_write, func_sock_ioctl, func_sock_destroy): Use IS_INVALID_SOCKET. -- It is possible for some architectures that the value of extended -1 and ~0 is different in C. Better to avoid the issue in advance. Signed-off-by: NIIBE Yutaka <[email protected]>
* doc: Update Known Problems section in README.NIIBE Yutaka2026-02-241-0/+26
| | | | | | | -- GnuPG-bug-id: 8066 Signed-off-by: NIIBE Yutaka <[email protected]>
* Release 1.59libgpg-error-1.59gpgrt-1.59Werner Koch2026-02-186-6/+17
|
* po: msgmergeWerner Koch2026-02-181-2/+2
| | | | --
* po: Update Russian translationIneiev2026-02-131-68/+44
|
* spawn:w32: Fix with GPGRT_PROCESS_*_KEEP flags.NIIBE Yutaka2026-02-041-9/+18
| | | | | | | | | | * src/spawn-w32.c (_gpgrt_process_spawn): Don't close the handle when GPGRT_PROCESS_*_KEEP is specified. -- GnuPG-bug-id: 8052 Signed-off-by: NIIBE Yutaka <[email protected]>
* spawn:w32: Fix preparing the environment block.NIIBE Yutaka2026-02-041-3/+7
| | | | | | | | | | | | * src/spawn-w32.c (prepare_env_block): Copy environment variables correctly by memmove. -- With "export GNUPGHOME=something", t-spawn.exe failed before the fix. GnuPG-bug-id: 8052 Signed-off-by: NIIBE Yutaka <[email protected]>
* build: Introduce autogen.rc variable autogen_use_forceWerner Koch2026-02-032-1/+3
| | | | | | | -- For some projects it is required to use the --force options. The new variable allows to force force using autogen.rc.
* spawn:posix: Take care of POSIX semaphore "shared" semantics.NIIBE Yutaka2026-02-031-2/+4
| | | | | | | | | | | | | | * src/spawn-posix.c (spawn_detached): Don't call _gpgrt_post_syscall on the child process. (_gpgrt_process_spawn): Likewise. -- On NetBSD, a POSIX semaphore is somehow shared among processes, even if sem_init is called with PSHARED=0. GnuPG-bug-id: 8065 Signed-off-by: NIIBE Yutaka <[email protected]>
* po: Update Swedish translation.Daniel Nylander2026-01-251-11/+11
| | | | --
* build: Fix typos in texinfo.tex.NIIBE Yutaka2026-01-151-5/+5
| | | | | | | | | | | * build-aux/texinfo.tex: Fix typos. -- Apply the part of changes in libgcrypt's commit of: 9b651fb632f3697e70685c9ee340ab0cb2274bdf Signed-off-by: NIIBE Yutaka <[email protected]>
* m4: Fix m4 macros for strict C compiler.NIIBE Yutaka2026-01-141-1/+1
| | | | | | | | | | | * m4/ax_cc_for_build.m4.: Fix for no arg. -- Incorporate the change of libgcrypt commit: e3b441214f93d8f61875b8223480e57afa2a3f10 Signed-off-by: NIIBE Yutaka <[email protected]>
* build: Remove unused build-aux/libtool.patch.NIIBE Yutaka2026-01-141-45/+0
| | | | | | | | | * build-aux/libtool.patch: Remove. -- Fixes-commit: 8dd210e9e15905f8c6d155c64b09378d65382335 Signed-off-by: NIIBE Yutaka <[email protected]>
* w32:tests: Fix a test failure for tilde expansion.NIIBE Yutaka2026-01-091-2/+8
| | | | | | | | | * tests/t-stringutils.c: [HAVE_W32_SYSTEM] (mygethome): Use fnameconcat to get HOME, instead of the environment variable. -- Signed-off-by: NIIBE Yutaka <[email protected]>
* w32:spawn: Handle the case where ->hProcess has invalid handle.NIIBE Yutaka2026-01-071-1/+5
| | | | | | | | | * src/spawn-w32.c (_gpgrt_process_terminat): Care about the case it's INVALID_HANDLE_VALUE. -- Signed-off-by: NIIBE Yutaka <[email protected]>