Skip to content

Commit

Permalink
Check argument count when instantiating templates
Browse files Browse the repository at this point in the history
  • Loading branch information
HGuillemet committed Jan 4, 2024
1 parent f77a1bf commit 69cde9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/bytedeco/javacpp/tools/Parser.java
Original file line number Diff line number Diff line change
Expand Up @@ -4436,7 +4436,7 @@ void declarations(Context context, DeclarationList declList) throws ParserExcept
continue;
}
Type type = new Parser(this, info.cppNames[0]).type(context);
if (type.arguments == null) {
if (type.arguments == null || type.arguments.length > map.size()) {
continue;
}
int count = 0;
Expand Down

0 comments on commit 69cde9a

Please sign in to comment.