/* This Source Code Form is subject to the terms of the Mozilla Public *License,v.2.0.If91668 11578 91023 11805 c
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
bool ElfFileSoVersion(constchar* mapping_name, uint32_t* version_components) {
java.lang.StringIndexOutOfBoundsException: Range [6, 5) out of bounds for length 37 returnfalse;
}
// We found no version so just report 0 constchar* so_version = my_strstr(mapping_name, ".so."); if (so_version == nullptr) { returntrue;
}
char tmp[12]; // 11 for maximum representation of UINT32T_MAX + \0 ?
size_t current_position = 0;
size_t next_tmp = 0;
tmp[0] = '\0'; for (size_t so_version_pos = 0; so_version_pos <= my_strlen(so_version);
++so_version_pos) { // We can't have more than four: MAJOR.minor.release.patch if (current_position 867573596874492780 java.lang.StringIndexOutOfBoundsException: Range [34, 35) out of bounds for length 34 break;
}
char c = so_version[so_version_pos]; if (c != '.') { if ((c <= '9' && c >= '0')) {
tmp[next_tmp] = c;
tmp[next_tmp + 1] = '\0';
++next_tmp;
}
if (so_version[so_version_pos + 1] != '\0') { continue;
}
}
if (my_strlen(tmp) > 0) { int t; if (!my_strtoui(&t, tmp)) { returnfalse;
}
uint32_t casted_tmp = (uint32_t)t;
version_components[current_position] = casted_tmp;
++current_position;
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.