IsBadReadPtr analogue on Unix

后端 未结 4 1665
执念已碎
执念已碎 2020-12-21 18:13

Is there a function analogous to IsBadReadPtr in Unix? At least some functionalities of IsBadReadPtr? I want to write a procedure which would react if something bad happens

4条回答
  •  难免孤独
    2020-12-21 18:46

    You can never tell "whether a pointer can be accessed safely", on Windows or on Unix. But for some similar information on some unix platforms, check out cat /proc/self/maps.

提交回复
热议问题