Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update CI/CD configs #12

Merged
merged 14 commits into from
Jul 31, 2024
Merged

Update CI/CD configs #12

merged 14 commits into from
Jul 31, 2024

Conversation

a0x8o
Copy link
Owner

@a0x8o a0x8o commented Jul 30, 2024

tests: Add .gitignore to gunittest testreport folder if not present (OSGeo#4092

CI(deps): Update github/codeql-action action to v3.25.14 (https://github.com/OSGeo/grass/pull/4102[)](https://github.com/a0x8o/grass/commit/06455101f616c037a1e2e913e548eb56bd2d31ef)

CI(deps): Update ruff to v0.5.5 (https://github.com/OSGeo/grass/pull/4103[)](https://github.com/a0x8o/grass/commit/b082d422ef215c21a0fcdaf3a0a5b38cc7c51ea1)

renovate[bot] and echoix committed 5 days ago

d.labels: Fix buffer overflow issues (https://github.com/OSGeo/grass/pull/4041[)](https://github.com/a0x8o/grass/commit/cd0687fb7904e507ecb28d9d250e50afe3dc89f1)

CI(deps): Update github/codeql-action action to v3.25.15 (https://github.com/OSGeo/grass/pull/4107[)](https://github.com/a0x8o/grass/commit/e386819091cd710821acc53c106d7bce8e821e5a)

@renovate
renovate[bot] committed 4 days ago

CI(deps): Lock file maintenance (https://github.com/OSGeo/grass/pull/4109[)](https://github.com/a0x8o/grass/commit/3aa7d1e1f93c8b710ed87f0f1e4e82d49c78403d)

@renovate
renovate[bot] committed yesterday

lib/gis: Add portable G_strlcpy function (https://github.com/OSGeo/grass/pull/4101[)](https://github.com/a0x8o/grass/commit/84db88a9d2b7e05fdb5472b118986ece263b6615)

CI(deps): Update docker/setup-buildx-action action to v3.6.1 (OSGeo#4110

@renovate
renovate[bot] committed 14 hours ago

CI(deps): Update msys2/setup-msys2 action to v2.24.0 (https://github.com/OSGeo/grass/pull/4108[)](https://github.com/a0x8o/grass/commit/0983373d840b2c0fdbc3b0c70cee8d9e1caba2b1)

echoix and others added 9 commits July 24, 2024 07:11
…4092)

gunittest: Add .gitignore to testreport folder if not present

Co-authored-by: Edouard Choinière <echoix@users.noreply.github.com>
* CI(deps): Update ruff to v0.5.5

* Remove trailing whitespace in .coveragerc

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Edouard Choinière <27212526+echoix@users.noreply.github.com>
Addresses multiple warnings identified by cppcheck related to
potential buffer overflow issues. Added field width specifiers
to the sscanf calls to prevent buffer overflows.
This commit introduces a new G_strlcpy function in lib/gis, inspired by
G_asprintf. G_strlcpy provides a safer alternative to strcpy and strncpy,
with consistent behavior across different systems.

Key points:
- Implements strlcpy functionality, available natively on BSD systems
- Portable implementation for non-BSD systems (excluding Linux with libbsd)
- Based on FreeBSD's implementation:
  https://github.com/freebsd/freebsd-src/blob/98dd639c94f716858ae29958f484729b1d2fd387/sys/libkern/strlcpy.c#L28
- Designed to replace unsafe uses of strcpy and strncpy throughout the project

The function is implemented to use the native strlcpy where available,
falling back to our portable version on systems without it. This ensures
optimal performance on BSD systems while maintaining compatibility across
different platforms.

By providing G_strlcpy, we aim to improve the overall safety and
consistency of string operations in our codebase.
@github-actions github-actions bot added the GUI label Jul 30, 2024
echoix and others added 3 commits July 30, 2024 17:15
* CI(ruff): Show ruff annotations even for fixes

* CI(ruff): Use default output format when fixing
The true if-statement only handles buffers with rounded corners.
E.g. using `v.buffer` without `-s` on points. GEOS handles buffers
with corners.
This pull request introduces a new feature to grass.jupyter.interactivemap.py: a "View/Update Computational Region" button that allows users to update the computational region by adjusting its boundaries interactively. Users can move the rectangle representing the current computation region and adjust its size by changing its vertex.

---------

Co-authored-by: Anna Petrasova <kratochanna@gmail.com>
@a0x8o a0x8o merged commit afc6079 into a0x8o:main Jul 31, 2024
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants