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

Replace REAL()[0] by REAL_0(), and similar #1631

Open
1 of 2 tasks
krlmlr opened this issue Dec 11, 2024 · 0 comments
Open
1 of 2 tasks

Replace REAL()[0] by REAL_0(), and similar #1631

krlmlr opened this issue Dec 11, 2024 · 0 comments
Labels
upkeep maintenance, infrastructure, and similar
Milestone

Comments

@krlmlr
Copy link
Contributor

krlmlr commented Dec 11, 2024

Flagged by CRAN:

diff -Nru orig/igraph/src/rinterface_extra.c patches/igraph/src/rinterface_extra.c
--- orig/igraph/src/rinterface_extra.c	2024-10-18 07:23:06.000000000 -0400
+++ patches/igraph/src/rinterface_extra.c	2024-12-03 11:51:27.514912912 -0500
@@ -4584,6 +4584,8 @@
                                  SEXP palgo) {
 
   igraph_t g;
+  if (Rf_length(pfrom) < 1)
+    Rf_error("empty pfrom");
   igraph_integer_t from=(igraph_integer_t) REAL(pfrom)[0];
   igraph_vs_t to;
   igraph_vector_int_t to_data;
  • For this instance
  • Everywhere
@krlmlr krlmlr added this to the 2.1.3 milestone Dec 11, 2024
@krlmlr krlmlr added the upkeep maintenance, infrastructure, and similar label Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
upkeep maintenance, infrastructure, and similar
Projects
None yet
Development

No branches or pull requests

1 participant