leezu commented on a change in pull request #20403:
URL: https://github.com/apache/incubator-mxnet/pull/20403#discussion_r661447494



##########
File path: src/c_api/c_api.cc
##########
@@ -1974,7 +1974,8 @@ int MXNDArrayLoad(const char* fname,
         << "Failed to read 32 bits from file.";
   }
 
-  if (magic == 0x04034b50 || magic == 0x504b0304) {  // zip file format; 
assumed to be npz
+  if (magic == 0x04034b50 || magic == 0x504b0304 || magic == 0x06054b50) {

Review comment:
       You need to consider both big and little endian systems for the magic 
check here.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to