Changeset 73097 in vbox for trunk/src/VBox/Runtime/r3/solaris
- Timestamp:
- Jul 12, 2018 9:06:33 PM (7 years ago)
- Location:
- trunk/src/VBox/Runtime/r3/solaris
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/solaris/coredumper-solaris.cpp
r69438 r73097 983 983 * layout in the future. See @bugref{8479}. 984 984 */ 985 size_t const offZoneId = RT_ OFFSETOF(psinfo_t, pr_zoneid);985 size_t const offZoneId = RT_UOFFSETOF(psinfo_t, pr_zoneid); 986 986 if (pSolProc->cbProcInfo < offZoneId) 987 987 { … … 1035 1035 PRTSOLCOREPROCESS pSolProc = &pSolCore->SolProc; 1036 1036 1037 size_t offLwp = RT_ OFFSETOF(psinfo_t, pr_lwp);1037 size_t offLwp = RT_UOFFSETOF(psinfo_t, pr_lwp); 1038 1038 /* last member we care about in lwpsinfo_t is pr_bindpset which is also present on ancient Solaris version we use for 1039 1039 building the additions. Should be safe enough as we don't need/access members upto or beyond that point anyway. */ 1040 size_t offLastOnProc = RT_ OFFSETOF(lwpsinfo_t, pr_bindpset);1040 size_t offLastOnProc = RT_UOFFSETOF(lwpsinfo_t, pr_bindpset); 1041 1041 if (pSolProc->cbProcInfo >= offLwp + offLastOnProc) 1042 1042 { -
trunk/src/VBox/Runtime/r3/solaris/krnlmod-solaris.cpp
r67304 r73097 91 91 int rc = VINF_SUCCESS; 92 92 size_t cchName = strlen(&pModInfo->mi_name[0]) + 1; 93 PRTKRNLMODINFOINT pThis = (PRTKRNLMODINFOINT)RTMemAllocZ(RT_ OFFSETOF(RTKRNLMODINFOINT, achName[cchName]));93 PRTKRNLMODINFOINT pThis = (PRTKRNLMODINFOINT)RTMemAllocZ(RT_UOFFSETOF_DYN(RTKRNLMODINFOINT, achName[cchName])); 94 94 if (RT_LIKELY(pThis)) 95 95 {
Note:
See TracChangeset
for help on using the changeset viewer.