蘭雅sRGB hongwenjun

hongwenjun synced commits to main at hongwenjun/cpp from mirror

2 weeks ago

hongwenjun synced commits to main at hongwenjun/CorelDRAW-CPG from mirror

1 month ago

hongwenjun synced commits to main at hongwenjun/CorelDRAW-CPG from mirror

  • 5987896ad1 增加记忆容差值_保存窗口位置

1 month ago

hongwenjun synced commits to main at hongwenjun/corelvba from mirror

  • 0e94cd3f81 感谢网友捐助,结交更多朋友

1 month ago

hongwenjun synced commits to main at hongwenjun/cpp from mirror

2 months ago

hongwenjun synced commits to main at hongwenjun/corelvba from mirror

  • a74c89c711 2024.2.21 意外发现海外朋友 tubbiya 的捐赠 30刀,过完春节换了一个工作,白天没有写代码时间

2 months ago

hongwenjun synced commits to master at hongwenjun/musl from mirror

  • c47ad25ea3 iconv: harden UTF-8 output code path against input decoder bugs the UTF-8 output code was written assuming an invariant that iconv's decoders only emit valid Unicode Scalar Values which wctomb can encode successfully, thereby always returning a value between 1 and 4. if this invariant is not satisfied, wctomb returns (size_t)-1, and the subsequent adjustments to the output buffer pointer and remaining output byte count overflow, moving the output position backwards, potentially past the beginning of the buffer, without storing any bytes.
  • 4c4f15dae5 hasmntopt: match only whole options not arbitrary substrings the man page for this nonstandardized function has historically documented it as scanning for a substring; however, this is functionally incorrect (matches the substring "atime" in the "noatime" option, for example) and differs from other existing implementations. with the change made here, it should match glibc and other implementations, only matching whole options delimited by commas or separated from a value by an equals sign.
  • e5adcd97b5 iconv: fix erroneous input validation in EUC-KR decoder as a result of incorrect bounds checking on the lead byte being decoded, certain invalid inputs which should produce an encoding error, such as "\xc8\x41", instead produced out-of-bounds loads from the ksc table. in a worst case, the loaded value may not be a valid unicode scalar value, in which case, if the output encoding was UTF-8, wctomb would return (size_t)-1, causing an overflow in the output pointer and remaining buffer size which could clobber memory outside of the output buffer. bug report was submitted in private by Nick Wellnhofer on account of potential security implications.
  • 5e594aeabf iconv: fix erroneous decoding of some invalid ShiftJIS sequences out-of-range second bytes were not handled, leading to wrong character output rather than a reported encoding error. fix based on bug report by Nick Wellnhofer, submitted in private in case the issue turned out to have security implications.
  • 6af4f25b89 s390x: manually inline __tls_get_addr in __tls_get_offset Calling __tls_get_addr with brasl is not valid since it's a global symbol; doing so results in an R_390_PC32DBL relocation error from lld. We could fix this by marking __tls_get_addr hidden since it is not part of the s390x ABI, or by using a different instruction. However, given its simplicity, it makes more sense to just manually inline it into __tls_get_offset for performance. The patch has been tested by applying to Zig's bundled musl copy and running the full Zig test suite under qemu-s390x.
  • View comparison for these 6 commits »

3 months ago

hongwenjun synced commits to master at hongwenjun/musl from mirror

  • 1a98576401 sched.h: reduce namespace conflicts in _GNU_SOURCE profile we have the cpuset macros call calloc/free/memset/memcmp directly so that they don't depend on any further ABI surface. this is not namespace-clean, but only affects the _GNU_SOURCE feature profile, which is not intended to be namespace-clean. nonetheless, reports come up now and then of things which are gratuitously broken, usually when an application has wrapped malloc with macros. this patch parenthesizes the function names so that function-like macros will not be expanded, and removes the unused declaration of memcpy. this is not a complete solution, but it should improve things for affected applications, particularly ones which are not even trying to use the cpuset interfaces which got them just because g++ always defines _GNU_SOURCE.
  • d36e5bf83b mq: add x32-specific implementations to work around mismatched kernel ABI the kernel mq_attr structure has 8 64-bit longs instead of 8 32-bit longs. it's not clear that this is the nicest way to implement the fix, but the concept (translation) is right, and the details can be changed later if desired.
  • 561cd07dff SIGEV_THREAD timers: re-block signals when reusing kernel thread previously, we left any changes made by the application to the timer thread's signal mask active when resetting the thread state for reuse. not only did this violate the intended invariant that timer threads start with all signals blocked; it also allowed application code to execute in a thread that, formally, did not exist. and further, if the internal SIGTIMER signal became unblocked, it could also lead to missed timer expiration events.
  • 47fa6e4fcc SIGEV_THREAD timers: fix fatal signal if internal SIGTIMER becomes unblocked commit 6ae2568bc2367b4d47e0ea1cb043fd56e697912f introduced a fatal signal condition if the internal timer signal used for SIGEV_THREAD timers is unblocked. this can happen whenever the application alters the signal mask with SIG_SETMASK, since sigset_t objects never include the bits used for implementation-internal signals. this patch effectively reverts the breakage by adding back a no-op signal handler. overruns will not be accounted if the timer signal becomes unblocked, but POSIX does not specify them except for SIGEV_SIGNAL timers anyway.
  • View comparison for these 4 commits »

3 months ago

hongwenjun synced commits to main at hongwenjun/cpp from mirror

4 months ago

hongwenjun synced commits to main at hongwenjun/corelvba from mirror

  • d8cc36c513 更新捐赠者名单,感谢各位朋友的捐赠支持

5 months ago

hongwenjun synced commits to master at hongwenjun/musl from mirror

  • 61399d4bd0 loongarch64: add TLSDESC support
  • 9b6a24f9c5 wire up vdso clock_gettime for riscv32 and riscv64
  • f2375aacac wire up vdso clock_gettime for powerpc, powerpc64, and s390x symbol names and versions obtained from vdso(7) man page.
  • bc5f816a7a mips: use preferred asm mnemomic jr for better assembler compatibility The LLVM assembler reportedly assembles the form using the j mnemonic incorrectly (see issue 107460). The jr form is canonical and avoids this problem, so use it instead.
  • 4e6c827cf4 mntent: exclude trailing newline from parsed field When the pattern was changed from matching any whitespace to just matching spaces and tabs, a newline started being appended to the value of the matched field, if that field was a string. For example, in a 4-field line, the mnt_opts field would have a newline on the end. This happened because a newline is not a space or a tab, and so was matched as part of the value before the end of the string was reached. \n should therefore be added as a character that terminates a value. This shouldn't interfere with the intention of the change to space and tab only, as it was trying to make sure that other whitespace like carriage returns, that should have been part of parsed values, were. Fixes: f314e133
  • View comparison for these 6 commits »

5 months ago

hongwenjun synced commits to main at hongwenjun/corelvba from mirror

5 months ago

hongwenjun synced commits to main at hongwenjun/CorelDRAW-CPG from mirror

  • 7926e0b268 Lanya CPG Plug-In For Coreldraw X4-2023 Added English version and X4 version

6 months ago

hongwenjun synced commits to 20241119 at hongwenjun/CorelDRAW-CPG from mirror

6 months ago

hongwenjun synced new reference 20241119 to hongwenjun/CorelDRAW-CPG from mirror

6 months ago

hongwenjun synced commits to main at hongwenjun/cpp from mirror

6 months ago

hongwenjun pushed to master at hongwenjun/cdrapp

  • a473b6214f windows 简单窗口使用Windows系统图标

6 months ago

hongwenjun synced commits to main at hongwenjun/cpp from mirror

  • b3f80519a7 增加原图和美白图对比,支持色阶微调

6 months ago

hongwenjun synced commits to main at hongwenjun/corelvba from mirror

  • e34591f52e 文稿一键美白App 感谢各位朋友捐赠

6 months ago

hongwenjun synced commits to main at hongwenjun/cpp from mirror

  • 9c56d9614a 文稿一键美白App By 蘭雅 捞鱼吧 bbs.lyvba.com

6 months ago