fix core: Observer crash due to incorrect assessment of allocated buffer in deserialization of ObDynamicSamplePieceMsg.
This commit is contained in:
		@ -93,7 +93,7 @@ OB_DEF_DESERIALIZE(ObDynamicSamplePieceMsg)
 | 
				
			|||||||
        }
 | 
					        }
 | 
				
			||||||
      } else {
 | 
					      } else {
 | 
				
			||||||
        void *tmp_buf = arena_.alloc(sizeof(ObChunkDatumStore));
 | 
					        void *tmp_buf = arena_.alloc(sizeof(ObChunkDatumStore));
 | 
				
			||||||
        if (OB_ISNULL(buf)) {
 | 
					        if (OB_ISNULL(tmp_buf)) {
 | 
				
			||||||
          ret = OB_ALLOCATE_MEMORY_FAILED;
 | 
					          ret = OB_ALLOCATE_MEMORY_FAILED;
 | 
				
			||||||
          LOG_WARN("allocate memory failed", K(ret));
 | 
					          LOG_WARN("allocate memory failed", K(ret));
 | 
				
			||||||
        } else {
 | 
					        } else {
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user