A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/stlink-org/stlink/pull/1356 below:

failed to allocate 139988352155568 bytes · Issue #1356 · stlink-org/stlink · GitHub

Commandline output:

$ ./stlink-gui 

(stlink-gui:25286): GLib-ERROR **: 10:38:03.866: ../glib-2.78.1/glib/gmem.c:136: failed to allocate 139988352155568 bytes
Trace/breakpoint trap

The program crashes after opening a file.

Commit 3343078 seems to be the villain. Why g_malloc(<pointer_casted_to_gsize>) instead of the previous g_malloc(g_file_info_get_size(file_info))?

Changing line 311 from gui->file_mem.size = (gsize) file_info; to gui->file_mem.size = file_size; fixed the issue and I was able to flash the device.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4