ObjFW  Diff

Differences From Artifact [51291209ea]:

To Artifact [6aa1a96c52]:


844
845
846
847
848
849
850

851

852
853
854
855
856
857
858
844
845
846
847
848
849
850
851

852
853
854
855
856
857
858
859







+
-
+








		if (of_stat(path, &st) != 0)
			@throw [OFOpenItemFailedException
			    exceptionWithPath: path
					 mode: @"rb"
					errNo: errno];

		if (sizeof(of_offset_t) > sizeof(size_t) &&
		if (st.st_size > SIZE_MAX)
		    st.st_size > (of_offset_t)SIZE_MAX)
			@throw [OFOutOfRangeException exception];

		file = [[OFFile alloc] initWithPath: path
					       mode: @"rb"];

		@try {
			tmp = [self allocMemoryWithSize: (size_t)st.st_size];