Skip to content

Commit

Permalink
8252704: Absolute library paths are not properly quoted
Browse files Browse the repository at this point in the history
Reviewed-by: sundar
  • Loading branch information
JornVernee committed Sep 2, 2020
1 parent 1dc9149 commit eb0768a
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -634,12 +634,16 @@ private void emitLibraries(String[] libraryNames) {
for (String lib : libraryNames) {
indent();
append('\"');
append(lib);
append(quoteLibraryName(lib));
append("\",\n");
}
decrAlign();
indent();
append("});\n\n");
decrAlign();
}

private static String quoteLibraryName(String lib) {
return lib.replace("\\", "\\\\"); // double up slashes
}
}

0 comments on commit eb0768a

Please sign in to comment.