Issue 191 - Linux dump_syms produces bad line numbers for some functions (16 bit overflow). r=Liu Li

git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@190 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
ted.mielczarek 2007-07-02 12:02:36 +00:00
parent b5c78cc8d1
commit bd7b42587c

View file

@ -223,7 +223,8 @@ int LoadLineInfo(struct nlist *list,
struct LineInfo line;
while (cur_list < list_end && cur_list->n_type == N_SLINE) {
line.rva_to_func = cur_list->n_value;
line.line_num = cur_list->n_desc;
// n_desc is a signed short
line.line_num = (unsigned short)cur_list->n_desc;
func_info->line_info.push_back(line);
++cur_list;
}